Add ability to skip count query

This commit is contained in:
Chocobozzz 2020-01-08 14:15:16 +01:00
parent ddc07312b0
commit fe98765624
No known key found for this signature in database
GPG key ID: 583A612D890159BE
13 changed files with 55 additions and 20 deletions

View file

@ -117,6 +117,10 @@ function isUserAbleToSearchRemoteURI (res: express.Response) {
(CONFIG.SEARCH.REMOTE_URI.USERS === true && user !== undefined)
}
function getCountVideos (req: express.Request) {
return req.query.skipCount !== true
}
// ---------------------------------------------------------------------------
export {
@ -125,5 +129,6 @@ export {
isUserAbleToSearchRemoteURI,
badRequest,
createReqFiles,
cleanUpReqFiles
cleanUpReqFiles,
getCountVideos
}