diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-03 16:23:45 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-06 11:19:16 +0200 |
commit | 590fb5069038e69898123bb795f789683216d837 (patch) | |
tree | ddb3d1830b7d64ebae214dd65a94dd3d16324819 /server/models | |
parent | 5d08a6a74e83f2e4dfe2f3ba7f5a39371e1bc89e (diff) | |
download | PeerTube-590fb5069038e69898123bb795f789683216d837.tar.gz PeerTube-590fb5069038e69898123bb795f789683216d837.tar.zst PeerTube-590fb5069038e69898123bb795f789683216d837.zip |
Add tests regarding video import
Diffstat (limited to 'server/models')
-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), |