From f008e9f3f34ed1724afd5e071c39ed931741acbc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 11:56:04 +0100 Subject: Add missing url unique index in local video viewer --- server/models/view/local-video-viewer.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/models/view') diff --git a/server/models/view/local-video-viewer.ts b/server/models/view/local-video-viewer.ts index 9d0d89a59..274117e86 100644 --- a/server/models/view/local-video-viewer.ts +++ b/server/models/view/local-video-viewer.ts @@ -21,6 +21,10 @@ import { LocalVideoViewerWatchSectionModel } from './local-video-viewer-watch-se indexes: [ { fields: [ 'videoId' ] + }, + { + fields: [ 'url' ], + unique: true } ] }) -- cgit v1.2.3