diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/middlewares/validators/users.ts | 2 | ||||
-rw-r--r-- | server/models/video/video.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/middlewares/validators/users.ts b/server/middlewares/validators/users.ts index 8f1a7801f..33b31d54b 100644 --- a/server/middlewares/validators/users.ts +++ b/server/middlewares/validators/users.ts | |||
@@ -330,7 +330,7 @@ const usersVideosValidator = [ | |||
330 | .custom(isIdValid).withMessage('Should have a valid channel id'), | 330 | .custom(isIdValid).withMessage('Should have a valid channel id'), |
331 | 331 | ||
332 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { | 332 | async (req: express.Request, res: express.Response, next: express.NextFunction) => { |
333 | logger.debug('Checking usersVideosValidator parameters', { parameters: req.params }) | 333 | logger.debug('Checking usersVideosValidator parameters', { parameters: req.query }) |
334 | 334 | ||
335 | if (areValidationErrors(req, res)) return | 335 | if (areValidationErrors(req, res)) return |
336 | 336 | ||
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' | |||
43 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' | 43 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' |
44 | import { peertubeTruncate } from '../../helpers/core-utils' | 44 | import { peertubeTruncate } from '../../helpers/core-utils' |
45 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' | 45 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' |
46 | import { isBooleanValid } from '../../helpers/custom-validators/misc' | 46 | import { exists, isBooleanValid } from '../../helpers/custom-validators/misc' |
47 | import { | 47 | import { |
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 | ||