aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/schedulers/videos-redundancy-scheduler.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-22 14:46:47 +0200
committerChocobozzz <me@florianbigard.com>2019-08-22 14:46:47 +0200
commitd5c8932a601c1854db0a2e399ccaf26e17385f1a (patch)
tree8c38f9d7772c6a2d22dbeb84a7c4de6aaf345aeb /server/lib/schedulers/videos-redundancy-scheduler.ts
parent2a8ae7595c1b7853c47955b4b9ecb4a7f7a68fc0 (diff)
parent820546916cad3ae4cc51eab408aef7bbaff3632f (diff)
downloadPeerTube-d5c8932a601c1854db0a2e399ccaf26e17385f1a.tar.gz
PeerTube-d5c8932a601c1854db0a2e399ccaf26e17385f1a.tar.zst
PeerTube-d5c8932a601c1854db0a2e399ccaf26e17385f1a.zip
Merge branch 'release/1.4.0' into develop
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 d9018e606..21fe51156 100644
--- a/server/lib/schedulers/videos-redundancy-scheduler.ts
+++ b/server/lib/schedulers/videos-redundancy-scheduler.ts
@@ -200,7 +200,7 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
200 const tmpPath = await downloadWebTorrentVideo({ magnetUri }, VIDEO_IMPORT_TIMEOUT) 200 const tmpPath = await downloadWebTorrentVideo({ magnetUri }, VIDEO_IMPORT_TIMEOUT)
201 201
202 const destPath = join(CONFIG.STORAGE.REDUNDANCY_DIR, video.getVideoFilename(file)) 202 const destPath = join(CONFIG.STORAGE.REDUNDANCY_DIR, video.getVideoFilename(file))
203 await move(tmpPath, destPath) 203 await move(tmpPath, destPath, { overwrite: true })
204 204
205 const createdModel: MVideoRedundancyFileVideo = await VideoRedundancyModel.create({ 205 const createdModel: MVideoRedundancyFileVideo = await VideoRedundancyModel.create({
206 expiresOn: this.buildNewExpiration(redundancy.minLifetime), 206 expiresOn: this.buildNewExpiration(redundancy.minLifetime),