mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
finish market system
This commit is contained in:
@@ -138,7 +138,8 @@ function onStartup()
|
||||
db.asyncQuery("DELETE FROM `guild_wars` WHERE `status` = 0")
|
||||
db.asyncQuery("DELETE FROM `players` WHERE `deletion` != 0 AND `deletion` < " .. os.time())
|
||||
db.asyncQuery("DELETE FROM `ip_bans` WHERE `expires_at` != 0 AND `expires_at` <= " .. os.time())
|
||||
|
||||
db.asyncQuery("DELETE FROM `market_history` WHERE `inserted` <= " .. (os.time() - configManager.getNumber(configKeys.MARKET_OFFER_DURATION)))
|
||||
|
||||
-- Move expired bans to ban history
|
||||
local resultId = db.storeQuery("SELECT * FROM `account_bans` WHERE `expires_at` != 0 AND `expires_at` <= " .. os.time())
|
||||
if resultId ~= false then
|
||||
|
Reference in New Issue
Block a user