From e3837cd6c48784b04721faa5afbbde5b6aa8e42b Mon Sep 17 00:00:00 2001 From: david Date: Thu, 22 Aug 2019 19:25:50 +0200 Subject: [PATCH] a --- modules/comments/comment.routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/comments/comment.routes.js b/modules/comments/comment.routes.js index e2d6fba..a2a4349 100644 --- a/modules/comments/comment.routes.js +++ b/modules/comments/comment.routes.js @@ -67,7 +67,7 @@ commentController.create()); routes.get('/admin/comments', isAdministratorUser, // PaginateMiddleware.middleware(), - SortMiddleware.middleware({ default: "createdAt" }), + SortMiddleware.middleware({ default: "-createdAt" }), commentController.find({ scopes: ['defaultScope'], }),