From 46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Oct 2018 09:41:48 +0200 Subject: Fix redundancy with videos already duplicated with another instance --- server/lib/schedulers/videos-redundancy-scheduler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.ts index 06cfa1101..d324adfd0 100644 --- a/server/lib/schedulers/videos-redundancy-scheduler.ts +++ b/server/lib/schedulers/videos-redundancy-scheduler.ts @@ -109,7 +109,7 @@ export class VideosRedundancyScheduler extends AbstractScheduler { const serverActor = await getServerActor() for (const file of filesToDuplicate) { - const existing = await VideoRedundancyModel.loadByFileId(file.id) + const existing = await VideoRedundancyModel.loadLocalByFileId(file.id) if (existing) { await this.extendsExpirationOf(existing, redundancy.minLifetime) -- cgit v1.2.3