Skip to content

Commit

Permalink
fix: shadowing upvalue argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Jun 2, 2024
1 parent 7a7cc09 commit d2b7f62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function CreateAddonInventory(name, owner, items)
function self.saveItem(name, count)
if self.owner == nil then
MySQL.update(
'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name',
'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name',
{
['@inventory_name'] = self.name,
['@item_name'] = name,
['@count'] = count
})
else
MySQL.update(
'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name AND owner = @owner',
'UPDATE addon_inventory_items SET count = @count WHERE inventory_name = @inventory_name AND name = @item_name AND owner = @owner',
{
['@inventory_name'] = self.name,
['@item_name'] = name,
Expand Down

0 comments on commit d2b7f62

Please sign in to comment.