mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add jobs tag to logger
This commit is contained in:
parent
db4b15f21f
commit
18b24b2dc5
5 changed files with 28 additions and 21 deletions
|
@ -17,12 +17,12 @@ function areValidationErrors (req: express.Request, res: express.Response) {
|
|||
return false
|
||||
}
|
||||
|
||||
function checkSort (sortableColumns: string[]) {
|
||||
function checkSort (sortableColumns: string[], tags: string[] = []) {
|
||||
return [
|
||||
query('sort').optional().isIn(sortableColumns).withMessage('Should have correct sortable column'),
|
||||
|
||||
(req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
logger.debug('Checking sort parameters', { parameters: req.query })
|
||||
logger.debug('Checking sort parameters', { parameters: req.query, tags })
|
||||
|
||||
if (areValidationErrors(req, res)) return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue