diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-27 01:26:03 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-27 01:26:03 +0300 |
commit | a8c74bf2c5b8a8cc0bfd0f1d082eb3bf8357f6bc (patch) | |
tree | 8c5082a3eb75ab4102c69bd9b0801a2d6cc16a7a /hooks | |
parent | d7d65bbde562519f6a78d90b8ca11a3bdd0420a1 (diff) | |
download | which-api-a8c74bf2c5b8a8cc0bfd0f1d082eb3bf8357f6bc.tar.gz |
style: fix linting errors
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/sortByDate.ts | 4 |
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; -} +}; |