Skip to content

Commit ecd5d7d

Browse files
committed
refactor: remove unused updatePromises array from calculateMMR function
1 parent a0c3b60 commit ecd5d7d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/utils/algorithms/calculateMMR.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ export async function calculateNewMMR(
149149
oldMMR: number
150150
newMMR: number
151151
}> = []
152-
const updatePromises: Promise<void>[] = []
153152

154153
const playerUpdates: Array<{
155154
user_id: string
@@ -193,8 +192,6 @@ export async function calculateNewMMR(
193192
await updatePlayerMmrBulk(queueId, playerUpdates)
194193
}
195194

196-
await Promise.all(updatePromises)
197-
198195
const usersNeedingRoleUpdate = await getUsersNeedingRoleUpdates(
199196
queueId,
200197
playerMMRChanges,

0 commit comments

Comments
 (0)