diff --git a/server/core/lib/local-video-creator.ts b/server/core/lib/local-video-creator.ts index 1565f8bb0..d025a3e3f 100644 --- a/server/core/lib/local-video-creator.ts +++ b/server/core/lib/local-video-creator.ts @@ -205,7 +205,7 @@ export class LocalVideoCreator { }).catch(err => { // Reset elements to reinsert them in the database this.video.isNewRecord = true - this.videoFile.isNewRecord = true + if (this.videoFile) this.videoFile.isNewRecord = true for (const t of thumbnails) { t.isNewRecord = true