aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers/videos-redundancy-scheduler.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 09:41:48 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 09:41:48 +0200
commit46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b (patch)
tree8b06bd5f60d464723769fb53fe4f96558f3bfa74 /server/lib/schedulers/videos-redundancy-scheduler.ts
parent8b917537af2217ad0c87d49fd2ffa693d46a499c (diff)
downloadPeerTube-46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b.tar.gz
PeerTube-46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b.tar.zst
PeerTube-46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b.zip
Fix redundancy with videos already duplicated with another instance
Diffstat (limited to 'server/lib/schedulers/videos-redundancy-scheduler.ts')
-rw-r--r--server/lib/schedulers/videos-redundancy-scheduler.ts2
1 files changed, 1 insertions, 1 deletions
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 {
109 const serverActor = await getServerActor() 109 const serverActor = await getServerActor()
110 110
111 for (const file of filesToDuplicate) { 111 for (const file of filesToDuplicate) {
112 const existing = await VideoRedundancyModel.loadByFileId(file.id) 112 const existing = await VideoRedundancyModel.loadLocalByFileId(file.id)
113 if (existing) { 113 if (existing) {
114 await this.extendsExpirationOf(existing, redundancy.minLifetime) 114 await this.extendsExpirationOf(existing, redundancy.minLifetime)
115 115