diff --git a/backend/controller/userController.ts b/backend/controller/userController.ts index 470fc89..5414034 100644 --- a/backend/controller/userController.ts +++ b/backend/controller/userController.ts @@ -147,7 +147,7 @@ export const userController = createController({ if (!lootbox) { throw new Error("Lootbox not found"); } - removeGems(db, user, lootbox.price); + await removeGems(db, user, lootbox.price); const result = weightedPickRandom(lootbox.items, (i) => getWeight(i.rarity), );