aboutsummaryrefslogtreecommitdiff
path: root/hooks/expandAuthor.ts
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 /hooks/expandAuthor.ts
parent2a4e1ff734533a026ebf4122c31355e2dffba1b2 (diff)
downloadwhich-api-7e4ebee9a0e56546d6dce76c5c48d6d13371c689.tar.gz
style: fix all eslint errors
Diffstat (limited to 'hooks/expandAuthor.ts')
-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;
};