diff options
-rw-r--r-- | store/sql_channel_store.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index cf34f2847..25cd46088 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -153,8 +153,10 @@ func (s SqlChannelStore) extraUpdated(channel *model.Channel) StoreChannel { channel.ExtraUpdated() - if count, err := s.GetMaster().Update(channel); err != nil || count != 1 { + if count, err := s.GetMaster().Update(channel); err != nil { result.Err = model.NewAppError("SqlChannelStore.extraUpdated", "Problem updating members last updated time", "id="+channel.Id+", "+err.Error()) + } else if count == 0 { + result.Err = model.NewAppError("SqlChannelStore.extraUpdated", "Problem updating members last updated time", "id="+channel.Id) } storeChannel <- result |