From 499a1aab64a7831e25711c0ae640f3d4dfffefd3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 28 Jun 2020 04:05:44 +0300 Subject: fix: add missing params to profile redirect --- services/profiles/profiles.class.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'services') 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 { + async get(id: string, params: Params ): Promise { return this.app.service('polls').find({ + ...params, query: { authorId: id } -- cgit v1.2.3