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')
|
inv = await db<ItemInventory>('itemInventories')
|
||||||
.insert({
|
.insert({
|
||||||
user: user,
|
user: user,
|
||||||
item: Math.min(item.id, getMaxStack(item)),
|
item: item.id,
|
||||||
quantity: quantity
|
quantity: Math.min(quantity, getMaxStack(item)),
|
||||||
})
|
})
|
||||||
.returning('*');
|
.returning('*');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue