mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 11:58:39 +01:00
Fixes (#5870)
This commit is contained in:
@@ -239,8 +239,10 @@
|
||||
to_chat(user, "<span class='warning'>Database connection failed!</span>")
|
||||
return
|
||||
|
||||
var/DBQuery/query = dbcon.NewQuery("UPDATE ss13_ban_mirrors SET deleted_at = :new_state: WHERE id = :id:")
|
||||
query.Execute(list("new_state" = inactive ? null : "NOW()", "id" = mirror_id))
|
||||
var/query_text = inactive ? "UPDATE ss13_ban_mirrors SET deleted_at = NULL WHERE id = :id:" : "UPDATE ss13_ban_mirrors SET deleted_at = NOW() WHERE id = :id:"
|
||||
|
||||
var/DBQuery/query = dbcon.NewQuery(query_text)
|
||||
query.Execute(list("id" = mirror_id))
|
||||
|
||||
if (query.ErrorMsg())
|
||||
to_chat(user, "<span class='warning'>An error occured while toggling mirror status!</span>")
|
||||
|
||||
Reference in New Issue
Block a user