From 2e7cf5ae0cf8fbc9526742b67a0079d42211644c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Sep 2018 14:08:35 +0200 Subject: Fix video files duplicated when fps is null Null values are not considered equal in a UNIQUE index --- server/lib/activitypub/videos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib') diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index db72ef23c..3dccabe12 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -478,7 +478,7 @@ function videoFileActivityUrlToDBAttributes (videoCreated: VideoModel, videoObje resolution: fileUrl.height, size: fileUrl.size, videoId: videoCreated.id, - fps: fileUrl.fps + fps: fileUrl.fps || -1 } as VideoFileModel attributes.push(attribute) } -- cgit v1.2.3