diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-19 11:56:04 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-19 13:54:52 +0100 |
commit | f008e9f3f34ed1724afd5e071c39ed931741acbc (patch) | |
tree | d6d338714d4dc051e8a7ffcfa707f6d4e9e44c0c /server/models/view | |
parent | 5bdfa604f102a5e51b5152457cd1a16d79177e26 (diff) | |
download | PeerTube-f008e9f3f34ed1724afd5e071c39ed931741acbc.tar.gz PeerTube-f008e9f3f34ed1724afd5e071c39ed931741acbc.tar.zst PeerTube-f008e9f3f34ed1724afd5e071c39ed931741acbc.zip |
Add missing url unique index in local video viewer
Diffstat (limited to 'server/models/view')
-rw-r--r-- | server/models/view/local-video-viewer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
21 | indexes: [ | 21 | indexes: [ |
22 | { | 22 | { |
23 | fields: [ 'videoId' ] | 23 | fields: [ 'videoId' ] |
24 | }, | ||
25 | { | ||
26 | fields: [ 'url' ], | ||
27 | unique: true | ||
24 | } | 28 | } |
25 | ] | 29 | ] |
26 | }) | 30 | }) |