Skip to content

Commit

Permalink
fix: citizenid handling in SQL update (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0r3tto authored Jul 9, 2024
1 parent 6e4c657 commit 9d2048f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ local function setPlayerVehicleOwner(vehicleId, citizenid)
message = 'a changeVehicleOwner event hook cancelled this operation'
}
end
MySQL.update.await('UPDATE player_vehicles SET citizenid = ?, license = (SELECT license FROM players WHERE citizenid = @citizenid) WHERE id = @id', {
MySQL.update.await('UPDATE player_vehicles SET citizenid = @citizenid, license = (SELECT license FROM players WHERE citizenid = @citizenid) WHERE id = @id', {
citizenid = citizenid,
id = vehicleId
})
Expand Down

0 comments on commit 9d2048f

Please sign in to comment.