From 3979a4876cd1d4899cf91d026891bd36055f9e00 Mon Sep 17 00:00:00 2001 From: Marcel van der Boom Date: Tue, 4 Aug 2020 13:54:40 +0200 Subject: [PATCH] Column is named status, not state --- database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database.go b/database.go index bd06d85..e284773 100644 --- a/database.go +++ b/database.go @@ -2339,10 +2339,10 @@ func (db *datastore) SilenceAccount(userID int64) error { } // Update user state - _, err = t.Exec("UPDATE users SET state=1 WHERE id=?", userID) + _, err = t.Exec("UPDATE users SET status=1 WHERE id=?", userID) if err != nil { t.Rollback() - return fmt.Errorf("Unable to update user state: %s", err) + return fmt.Errorf("Unable to update user status: %s", err) } // Commit all changes to the database