aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-12 20:20:33 +0300
committereug-vs <eug-vs@keemail.me>2020-06-12 20:20:33 +0300
commit7e4ebee9a0e56546d6dce76c5c48d6d13371c689 (patch)
treeeb905fa1307833c1ab856c387be2fa533ed2ea34 /services
parent2a4e1ff734533a026ebf4122c31355e2dffba1b2 (diff)
downloadwhich-api-7e4ebee9a0e56546d6dce76c5c48d6d13371c689.tar.gz
style: fix all eslint errors
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();
}
}