X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fsort.ts;h=8c27e82379bfbb2b09f04b1bd249ea859ab9f2f3;hb=00aab0666c6f772548c160fdfa871a8843b88f37;hp=5120804b3a34b27dc88753ff86cffd5906062ff9;hpb=c1e791bad0b079af67398f6407221e6dcbb573dd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/sort.ts b/server/middlewares/sort.ts index 5120804b3..8c27e8237 100644 --- a/server/middlewares/sort.ts +++ b/server/middlewares/sort.ts @@ -1,6 +1,5 @@ import * as express from 'express' -import 'express-validator' -import { SortType } from '../helpers/utils' +import { SortType } from '../models/utils' function setDefaultSort (req: express.Request, res: express.Response, next: express.NextFunction) { if (!req.query.sort) req.query.sort = '-createdAt'