diff options
author | eug-vs <eug-vs@keemail.me> | 2020-06-28 04:05:44 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-06-28 04:05:44 +0300 |
commit | 499a1aab64a7831e25711c0ae640f3d4dfffefd3 (patch) | |
tree | a14d89bd86c00e6fae1e1d7f8253919ad073d83a /services | |
parent | 2d293c075f25aac17005ba97cdb76db7554088e1 (diff) | |
download | which-api-499a1aab64a7831e25711c0ae640f3d4dfffefd3.tar.gz |
fix: add missing params to profile redirect
Diffstat (limited to 'services')
-rw-r--r-- | services/profiles/profiles.class.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts index 3461cbc..2a3d36c 100644 --- a/services/profiles/profiles.class.ts +++ b/services/profiles/profiles.class.ts @@ -1,12 +1,14 @@ import { Application } from '@feathersjs/express'; +import { Params } from '@feathersjs/feathers'; import { Poll } from 'which-types'; export default class Profiles { app!: Application; - async get(id: string): Promise<Poll[]> { + async get(id: string, params: Params ): Promise<Poll[]> { return this.app.service('polls').find({ + ...params, query: { authorId: id } |