From 13fff606d0190cc6d666af1e19f72977339449c7 Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 3 Apr 2023 13:22:25 +0200 Subject: [PATCH] array type --- backend/src/api/controllers/result.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/controllers/result.ts b/backend/src/api/controllers/result.ts index 3d7d5777b..e79e963b0 100644 --- a/backend/src/api/controllers/result.ts +++ b/backend/src/api/controllers/result.ts @@ -122,7 +122,7 @@ export async function updateTags( interface AddResultData { isPb: boolean; - tagPbs: any[]; + tagPbs: string[]; insertedId: ObjectId; dailyLeaderboardRank?: number; weeklyXpLeaderboardRank?: number; @@ -345,7 +345,7 @@ export async function addResult( } let isPb = false; - let tagPbs: any[] = []; + let tagPbs: string[] = []; if (!result.bailedOut) { [isPb, tagPbs] = await Promise.all([