Skip to content

Commit 499a1aa

Browse files
committed
fix: add missing params to profile redirect
1 parent 2d293c0 commit 499a1aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/profiles/profiles.class.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { Application } from '@feathersjs/express';
2+
import { Params } from '@feathersjs/feathers';
23
import { Poll } from 'which-types';
34

45

56
export default class Profiles {
67
app!: Application;
78

8-
async get(id: string): Promise<Poll[]> {
9+
async get(id: string, params: Params ): Promise<Poll[]> {
910
return this.app.service('polls').find({
11+
...params,
1012
query: {
1113
authorId: id
1214
}

0 commit comments

Comments
 (0)