aboutsummaryrefslogtreecommitdiff
path: root/services/profiles/profiles.class.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/profiles/profiles.class.ts')
-rw-r--r--services/profiles/profiles.class.ts4
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
}