fixed limit
This commit is contained in:
parent
10c64268c8
commit
e89516c618
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue