diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-11-11 15:32:29 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-11-11 15:32:29 -0500 |
commit | b55ec6148caa93d54b660afe55408c643d217108 (patch) | |
tree | 667549d55e716a1f75b0fe76f44dd1eb2953a350 /store | |
parent | 81b9c98075d945830c6fecabeffb66cfec2fda76 (diff) | |
download | chat-b55ec6148caa93d54b660afe55408c643d217108.tar.gz chat-b55ec6148caa93d54b660afe55408c643d217108.tar.bz2 chat-b55ec6148caa93d54b660afe55408c643d217108.zip |
Fix resetting of statuses on Postgres (#4538)
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_status_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_status_store.go b/store/sql_status_store.go index 7b9fdea5d..49a38a5c9 100644 --- a/store/sql_status_store.go +++ b/store/sql_status_store.go @@ -190,7 +190,7 @@ func (s SqlStatusStore) ResetAll() StoreChannel { go func() { result := StoreResult{} - if _, err := s.GetMaster().Exec("UPDATE Status SET Status = :Status WHERE Manual = 0", map[string]interface{}{"Status": model.STATUS_OFFLINE}); err != nil { + if _, err := s.GetMaster().Exec("UPDATE Status SET Status = :Status WHERE Manual = false", map[string]interface{}{"Status": model.STATUS_OFFLINE}); err != nil { result.Err = model.NewLocAppError("SqlStatusStore.ResetAll", "store.sql_status.reset_all.app_error", nil, "") } |