Column is named status, not state
This commit is contained in:
parent
ac921f9f4b
commit
3979a4876c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue