fix dumb typo

This commit is contained in:
Jill 2023-11-23 22:34:24 +03:00
parent e02ecfba4b
commit 1dee5ed060
Signed by: oat
GPG Key ID: 33489AA58A955108
1 changed files with 2 additions and 2 deletions

View File

@ -354,8 +354,8 @@ export async function giveItem(user: string, item: Item, quantity = 1): Promise<
inv = await db<ItemInventory>('itemInventories')
.insert({
user: user,
item: Math.min(item.id, getMaxStack(item)),
quantity: quantity
item: item.id,
quantity: Math.min(quantity, getMaxStack(item)),
})
.returning('*');
}