diff options
-rw-r--r-- | server/models/video/video-comment.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index ab909b0b8..868d04ff9 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -104,6 +104,10 @@ enum ScopeNames { | |||
104 | }, | 104 | }, |
105 | { | 105 | { |
106 | fields: [ 'videoId', 'originCommentId' ] | 106 | fields: [ 'videoId', 'originCommentId' ] |
107 | }, | ||
108 | { | ||
109 | fields: [ 'url' ], | ||
110 | unique: true | ||
107 | } | 111 | } |
108 | ] | 112 | ] |
109 | }) | 113 | }) |