aboutsummaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-27 01:26:03 +0300
committereug-vs <eug-vs@keemail.me>2020-06-27 01:26:03 +0300
commita8c74bf2c5b8a8cc0bfd0f1d082eb3bf8357f6bc (patch)
tree8c5082a3eb75ab4102c69bd9b0801a2d6cc16a7a /hooks
parentd7d65bbde562519f6a78d90b8ca11a3bdd0420a1 (diff)
downloadwhich-api-a8c74bf2c5b8a8cc0bfd0f1d082eb3bf8357f6bc.tar.gz
style: fix linting errors
Diffstat (limited to 'hooks')
-rw-r--r--hooks/sortByDate.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/sortByDate.ts b/hooks/sortByDate.ts
index 4a20920..9dd1222 100644
--- a/hooks/sortByDate.ts
+++ b/hooks/sortByDate.ts
@@ -2,7 +2,7 @@ import _ from 'lodash';
import { HookContext } from '@feathersjs/feathers';
export default async (context: HookContext): Promise<HookContext> => {
- _.set(context, 'params.query.$sort', { createdAt: - 1});
+ _.set(context, 'params.query.$sort', { createdAt: -1 });
return context;
-}
+};