aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/profiles/profiles.class.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts
index c896789..52d6b47 100644
--- a/services/profiles/profiles.class.ts
+++ b/services/profiles/profiles.class.ts
@@ -1,9 +1,9 @@
-import { Poll, PollSchema } from '../../models/polls/poll.schema';
+import { PollSchema } from '../../models/polls/poll.schema';
import PollModel from '../../models/polls/poll.model';
export default class Profiles {
- async get(id: string, params: any): Promise<PollSchema[]> {
- return PollModel.find({ authorId: id }).lean<Poll>();
+ async get(id: string): Promise<PollSchema[]> {
+ return PollModel.find({ authorId: id }).lean();
}
}