diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video-import.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-import.ts b/server/models/video/video-import.ts index c2e55509c..eca87163d 100644 --- a/server/models/video/video-import.ts +++ b/server/models/video/video-import.ts | |||
@@ -39,8 +39,7 @@ import { TagModel } from './tag' | |||
39 | ] | 39 | ] |
40 | }, | 40 | }, |
41 | { | 41 | { |
42 | model: () => TagModel, | 42 | model: () => TagModel |
43 | required: false | ||
44 | } | 43 | } |
45 | ] | 44 | ] |
46 | } | 45 | } |
@@ -106,6 +105,7 @@ export class VideoImportModel extends Model<VideoImportModel> { | |||
106 | 105 | ||
107 | static listUserVideoImportsForApi (accountId: number, start: number, count: number, sort: string) { | 106 | static listUserVideoImportsForApi (accountId: number, start: number, count: number, sort: string) { |
108 | const query = { | 107 | const query = { |
108 | distinct: true, | ||
109 | offset: start, | 109 | offset: start, |
110 | limit: count, | 110 | limit: count, |
111 | order: getSort(sort), | 111 | order: getSort(sort), |