From 17ddba4950d72e07968a3e87e9ea68b7c61f5b97 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Nov 2021 15:13:56 +0100 Subject: Fix thumbnail update --- server/models/video/video.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'server/models') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 3eed1b58d..ba4cf541b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1576,9 +1576,7 @@ export class VideoModel extends Model>> { if (Array.isArray(this.Thumbnails) === false) this.Thumbnails = [] - // Already have this thumbnail, skip - if (this.Thumbnails.find(t => t.id === savedThumbnail.id)) return - + this.Thumbnails = this.Thumbnails.filter(t => t.id !== savedThumbnail.id) this.Thumbnails.push(savedThumbnail) } -- cgit v1.2.3