We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d293c0 commit 499a1aaCopy full SHA for 499a1aa
services/profiles/profiles.class.ts
@@ -1,12 +1,14 @@
1
import { Application } from '@feathersjs/express';
2
+import { Params } from '@feathersjs/feathers';
3
import { Poll } from 'which-types';
4
5
6
export default class Profiles {
7
app!: Application;
8
- async get(id: string): Promise<Poll[]> {
9
+ async get(id: string, params: Params ): Promise<Poll[]> {
10
return this.app.service('polls').find({
11
+ ...params,
12
query: {
13
authorId: id
14
}
0 commit comments