diff options
-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; } } |