X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fsort.ts;h=6507aa5b8b54a7396cb0d59dc149757f26d7ae62;hb=09071200c73f5358e1d0bfb61a274e4f2c4ec52b;hp=5120804b3a34b27dc88753ff86cffd5906062ff9;hpb=c1e791bad0b079af67398f6407221e6dcbb573dd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/sort.ts b/server/middlewares/sort.ts index 5120804b3..6507aa5b8 100644 --- a/server/middlewares/sort.ts +++ b/server/middlewares/sort.ts @@ -1,6 +1,6 @@ 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'