diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 02a4c851c..344bfc929 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -23,7 +23,7 @@ import { | |||
23 | Table, | 23 | Table, |
24 | UpdatedAt | 24 | UpdatedAt |
25 | } from 'sequelize-typescript' | 25 | } from 'sequelize-typescript' |
26 | import { UserRight, VideoPrivacy, VideoState } from '../../../shared' | 26 | import { UserRight, VideoPrivacy, VideoState, ResultList } from '../../../shared' |
27 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' | 27 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' |
28 | import { Video, VideoDetails } from '../../../shared/models/videos' | 28 | import { Video, VideoDetails } from '../../../shared/models/videos' |
29 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' | 29 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' |
@@ -1442,7 +1442,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1442 | private static async getAvailableForApi ( | 1442 | private static async getAvailableForApi ( |
1443 | options: BuildVideosQueryOptions, | 1443 | options: BuildVideosQueryOptions, |
1444 | countVideos = true | 1444 | countVideos = true |
1445 | ) { | 1445 | ): Promise<ResultList<VideoModel>> { |
1446 | function getCount () { | 1446 | function getCount () { |
1447 | if (countVideos !== true) return Promise.resolve(undefined) | 1447 | if (countVideos !== true) return Promise.resolve(undefined) |
1448 | 1448 | ||