aboutsummaryrefslogtreecommitdiff
path: root/services/profiles/profiles.class.ts
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-12 20:21:30 +0300
committerGitHub <noreply@github.com>2020-06-12 20:21:30 +0300
commit1860396a1286936374ab88937da3e0b6b9b1a36d (patch)
treeeb905fa1307833c1ab856c387be2fa533ed2ea34 /services/profiles/profiles.class.ts
parent0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff)
parent7e4ebee9a0e56546d6dce76c5c48d6d13371c689 (diff)
downloadwhich-api-1860396a1286936374ab88937da3e0b6b9b1a36d.tar.gz
Merge pull request #6 from eug-vs/eslint
Eslint
Diffstat (limited to 'services/profiles/profiles.class.ts')
-rw-r--r--services/profiles/profiles.class.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/profiles/profiles.class.ts b/services/profiles/profiles.class.ts
index 8954f74..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();
}
-};
+}