Verified Commit c4c0c311 authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix my live videos filter

parent 926bf549
......@@ -330,7 +330,7 @@ const usersVideosValidator = [
.custom(isIdValid).withMessage('Should have a valid channel id'),
async (req: express.Request, res: express.Response, next: express.NextFunction) => {
logger.debug('Checking usersVideosValidator parameters', { parameters: req.params })
logger.debug('Checking usersVideosValidator parameters', { parameters: req.query })
if (areValidationErrors(req, res)) return
......
......@@ -43,7 +43,7 @@ import { VideoFilter } from '../../../shared/models/videos/video-query.type'
import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type'
import { peertubeTruncate } from '../../helpers/core-utils'
import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
import { isBooleanValid } from '../../helpers/custom-validators/misc'
import { exists, isBooleanValid } from '../../helpers/custom-validators/misc'
import {
isVideoDescriptionValid,
isVideoDurationValid,
......@@ -994,7 +994,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
}
}
if (isLive) {
if (exists(isLive)) {
where.isLive = isLive
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment