Skip to content

Commit

Permalink
Fixed Deletion of Bulletin
Browse files Browse the repository at this point in the history
  • Loading branch information
FadedThaAHo authored May 17, 2022
1 parent 67b8d0d commit 5d00423
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 @@ -184,7 +184,7 @@ RegisterNetEvent('mdt:server:deleteBulletin', function(id, title)
if not PermCheck(src, PlayerData) then return end
local JobType = GetJobType(PlayerData.job.name)

local deletion = MySQL.query.await('DELETE FROM `mdt_bulletin` where title = ?', {title})
MySQL.query.await('DELETE FROM `mdt_bulletin` where id = ?', {id})
AddLog("Bulletin with Title: "..title.." was deleted by " .. GetNameFromPlayerData(PlayerData) .. ".")
end)

Expand Down

0 comments on commit 5d00423

Please sign in to comment.