Skip to content

Commit

Permalink
fix: query string
Browse files Browse the repository at this point in the history
  • Loading branch information
Frowmza authored Sep 20, 2024
1 parent 49c3617 commit 32390f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/storage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end
---@param state VehicleState
---@return integer numRowsAffected
local function setVehicleGarage(vehicleId, garageName, state)
return MySQL.update('UPDATE player_vehicles SET garage = ? state = ? WHERE id = ?', {
return MySQL.update('UPDATE player_vehicles SET garage = ?, state = ? WHERE id = ?', {
garageName,
state,
vehicleId
Expand All @@ -30,4 +30,4 @@ return {
moveOutVehiclesIntoGarages = moveOutVehiclesIntoGarages,
setVehicleGarage = setVehicleGarage,
setVehicleDepotPrice = setVehicleDepotPrice,
}
}

0 comments on commit 32390f2

Please sign in to comment.