diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/sort.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/sort.ts b/server/middlewares/sort.ts index 609046a46..0600ccd15 100644 --- a/server/middlewares/sort.ts +++ b/server/middlewares/sort.ts | |||
@@ -16,7 +16,7 @@ function setBlacklistSort (req: express.Request, res: express.Response, next: ex | |||
16 | // Set model we want to sort onto | 16 | // Set model we want to sort onto |
17 | if (req.query.sort === '-createdAt' || req.query.sort === 'createdAt' || | 17 | if (req.query.sort === '-createdAt' || req.query.sort === 'createdAt' || |
18 | req.query.sort === '-id' || req.query.sort === 'id') { | 18 | req.query.sort === '-id' || req.query.sort === 'id') { |
19 | // If we want to sort onto the BlacklistedVideos relation, we won't specify it in the query parameter ... | 19 | // If we want to sort onto the BlacklistedVideos relation, we won't specify it in the query parameter... |
20 | newSort.sortModel = undefined | 20 | newSort.sortModel = undefined |
21 | } else { | 21 | } else { |
22 | newSort.sortModel = 'Video' | 22 | newSort.sortModel = 'Video' |