fix dumb typo
This commit is contained in:
parent
e02ecfba4b
commit
1dee5ed060
|
@ -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('*');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue