From 99f641f1f97c2c94b23c4597b4f113c8150a518a Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Tue, 22 Feb 2022 13:49:42 +0100 Subject: [PATCH] replace any --- backend/src/graphql/resolver/AdminResolver.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/AdminResolver.ts b/backend/src/graphql/resolver/AdminResolver.ts index 4eb06b493..6befcf13b 100644 --- a/backend/src/graphql/resolver/AdminResolver.ts +++ b/backend/src/graphql/resolver/AdminResolver.ts @@ -335,7 +335,8 @@ async function getUserCreations(ids: number[]): Promise { id, creations: months.map((month) => { const creation = unionQuery.find( - (raw: any) => parseInt(raw.month) === month && parseInt(raw.id) === id, + (raw: { month: string; id: string; creation: number[] }) => + parseInt(raw.month) === month && parseInt(raw.id) === id, ) return 1000 - (creation ? Number(creation.sum) / 10000 : 0) }),