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 | |
parent | d7d65bbde562519f6a78d90b8ca11a3bdd0420a1 (diff) | |
download | which-api-a8c74bf2c5b8a8cc0bfd0f1d082eb3bf8357f6bc.tar.gz |
style: fix linting errors
-rw-r--r-- | hooks/sortByDate.ts | 4 | ||||
-rw-r--r-- | services/feed/feed.class.ts | 2 | ||||
-rw-r--r-- | services/profiles/profiles.class.ts | 2 |
3 files changed, 4 insertions, 4 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; -} +}; diff --git a/services/feed/feed.class.ts b/services/feed/feed.class.ts index 3a2ffe4..ceb86e6 100644 --- a/services/feed/feed.class.ts +++ b/services/feed/feed.class.ts @@ -10,7 +10,7 @@ export default class Feed { return this.app.service('polls').find(params); } - setup (app: Application) { + setup(app: Application): void { this.app = app; } } diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts index 564e2a6..3461cbc 100644 --- a/services/profiles/profiles.class.ts +++ b/services/profiles/profiles.class.ts @@ -13,7 +13,7 @@ export default class Profiles { }); } - setup (app: Application) { + setup(app: Application): void { this.app = app; } } |