diff options
-rw-r--r-- | store/sqlstore/channel_store.go | 2 | ||||
-rw-r--r-- | store/sqlstore/channel_store_experimental.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go index 17ef6d4c9..63b9fbb42 100644 --- a/store/sqlstore/channel_store.go +++ b/store/sqlstore/channel_store.go @@ -660,6 +660,8 @@ func (s SqlChannelStore) Restore(channelId string, time int64) store.StoreChanne // @see ChannelStoreExperimental for how this update propagates to the PublicChannels table. func (s SqlChannelStore) SetDeleteAt(channelId string, deleteAt, updateAt int64) store.StoreChannel { return store.Do(func(result *store.StoreResult) { + defer s.InvalidateChannel(channelId) + transaction, err := s.GetMaster().Begin() if err != nil { result.Err = model.NewAppError("SqlChannelStore.SetDeleteAt", "store.sql_channel.set_delete_at.open_transaction.app_error", nil, err.Error(), http.StatusInternalServerError) diff --git a/store/sqlstore/channel_store_experimental.go b/store/sqlstore/channel_store_experimental.go index aceb0c7c5..ed1b4c06a 100644 --- a/store/sqlstore/channel_store_experimental.go +++ b/store/sqlstore/channel_store_experimental.go @@ -283,6 +283,8 @@ func (s SqlChannelStoreExperimental) SetDeleteAt(channelId string, deleteAt, upd } return store.Do(func(result *store.StoreResult) { + defer s.InvalidateChannel(channelId) + transaction, err := s.GetMaster().Begin() if err != nil { result.Err = model.NewAppError("SqlChannelStoreExperimental.SetDeleteAt", "store.sql_channel.set_delete_at.open_transaction.app_error", nil, err.Error(), http.StatusInternalServerError) |