aboutsummaryrefslogtreecommitdiff
path: root/hooks
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 /hooks
parent0ecf99e2749fe60a20e86b266c6019ebb56e021a (diff)
parent7e4ebee9a0e56546d6dce76c5c48d6d13371c689 (diff)
downloadwhich-api-1860396a1286936374ab88937da3e0b6b9b1a36d.tar.gz
Merge pull request #6 from eug-vs/eslint
Eslint
Diffstat (limited to 'hooks')
-rw-r--r--hooks/expandAuthor.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/expandAuthor.ts b/hooks/expandAuthor.ts
index 1f33ff0..3b3e3df 100644
--- a/hooks/expandAuthor.ts
+++ b/hooks/expandAuthor.ts
@@ -25,7 +25,7 @@ export const expandAuthorHook = async (context: HookContext): Promise<HookContex
};
export const expandAuthorManyHook = async (context: HookContext): Promise<HookContext> => {
- const polls = await bluebird.map(context.result, (poll: any) => expandAuthor(poll));
+ const polls = await bluebird.map(context.result, (poll: PollSchema) => expandAuthor(poll));
context.result = _.compact(polls);
return context;
};