Skip to content

Commit

Permalink
fix(billing/server): incorrect result index
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 20, 2022
1 parent 4acf463 commit 32d9445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion [esx_addons]/esx_billing/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ESX.RegisterServerCallback('esx_billing:payBill', function(source, cb, billId)
cb()
end
else
TriggerEvent('esx_addonaccount:getSharedAccount', result[1].target, function(account)
TriggerEvent('esx_addonaccount:getSharedAccount', result.target, function(account)
if xPlayer.getMoney() >= amount then
MySQL.update('DELETE FROM billing WHERE id = ?', {billId},
function(rowsChanged)
Expand Down

0 comments on commit 32d9445

Please sign in to comment.