aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-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 4044287ee..a62ae2f23 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -43,7 +43,7 @@ import { VideoFilter } from '../../../shared/models/videos/video-query.type'
43import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' 43import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type'
44import { peertubeTruncate } from '../../helpers/core-utils' 44import { peertubeTruncate } from '../../helpers/core-utils'
45import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' 45import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
46import { isBooleanValid } from '../../helpers/custom-validators/misc' 46import { exists, isBooleanValid } from '../../helpers/custom-validators/misc'
47import { 47import {
48 isVideoDescriptionValid, 48 isVideoDescriptionValid,
49 isVideoDurationValid, 49 isVideoDurationValid,
@@ -994,7 +994,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
994 } 994 }
995 } 995 }
996 996
997 if (isLive) { 997 if (exists(isLive)) {
998 where.isLive = isLive 998 where.isLive = isLive
999 } 999 }
1000 1000