From f9f62c04f2b3f6239ec22864465914a1e8d8998f Mon Sep 17 00:00:00 2001 From: Fabio1988 <35898099+Fabio1988@users.noreply.github.com> Date: Fri, 31 Mar 2023 22:15:49 +0200 Subject: [PATCH] Fix disabling Accounts --- db/account.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/account.go b/db/account.go index b8a01f7..bf47d3d 100644 --- a/db/account.go +++ b/db/account.go @@ -16,7 +16,6 @@ type Account struct { LastSuspended null.Int `db:"last_suspended"` Banned bool `db:"banned"` LastBanned null.Int `db:"last_banned"` - Disabled bool `db:"disabled"` LastDisabled null.Int `db:"last_disabled"` Invalid bool `db:"invalid"` LastSelected null.Int `db:"last_selected"` @@ -125,7 +124,7 @@ func MarkBanned(db DbDetails, username string) error { } func MarkDisabled(db DbDetails, username string) error { - _, err := db.FlygonDb.Exec("UPDATE account SET disabled=1, last_disabled=UNIX_TIMESTAMP() WHERE Username=?", username) + _, err := db.FlygonDb.Exec("UPDATE account SET last_disabled=UNIX_TIMESTAMP() WHERE Username=?", username) return err }