aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-05 10:42:36 +0200
committerChocobozzz <me@florianbigard.com>2020-06-09 14:52:55 +0200
commitb84d4c809f0b1c4b3f2029f56b81dbca37364f36 (patch)
tree1896405fa45c980eaf7860c838daa5500c10d50f /server/models/video/video.ts
parent0f32d49915378178eff4ab954c71f17e06aa8e1a (diff)
downloadPeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.tar.gz
PeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.tar.zst
PeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.zip
Fix video comments feed SQL query
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts4
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'
26import { UserRight, VideoPrivacy, VideoState } from '../../../shared' 26import { UserRight, VideoPrivacy, VideoState, ResultList } from '../../../shared'
27import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' 27import { VideoTorrentObject } from '../../../shared/models/activitypub/objects'
28import { Video, VideoDetails } from '../../../shared/models/videos' 28import { Video, VideoDetails } from '../../../shared/models/videos'
29import { VideoFilter } from '../../../shared/models/videos/video-query.type' 29import { 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