Skip to content

Commit

Permalink
fix: guild war status
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires committed Nov 13, 2024
1 parent adb3d7d commit 521ce54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/globalevents/update_guild_war_status.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local updateGuildWarStatus = GlobalEvent("UpdateGuildWarStatus")

function updateGuildWarStatus.onThink(interval)
local currentTime = os.time()
db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = %d WHERE `status` = 1 AND `ended` != 0 AND `ended` < %d", currentTime, currentTime)
db.query(string.format("UPDATE `guild_wars` SET `status` = 4, `ended` = %d WHERE `status` = 1 AND `ended` != 0 AND `ended` < %d", currentTime, currentTime))
return true
end

Expand Down

0 comments on commit 521ce54

Please sign in to comment.