fixed limit

This commit is contained in:
MasterGordon 2024-10-15 22:23:57 +02:00
parent 10c64268c8
commit e89516c618
1 changed files with 1 additions and 1 deletions

View File

@ -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),
);