summaryrefslogtreecommitdiffstats
path: root/store/sql_channel_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r--store/sql_channel_store.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go
index f3619c03a..c9b6d89b8 100644
--- a/store/sql_channel_store.go
+++ b/store/sql_channel_store.go
@@ -440,6 +440,10 @@ func (s SqlChannelStore) Delete(channelId string, time int64) StoreChannel {
return s.SetDeleteAt(channelId, time, time)
}
+func (s SqlChannelStore) Restore(channelId string, time int64) StoreChannel {
+ return s.SetDeleteAt(channelId, 0, time)
+}
+
func (s SqlChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) StoreChannel {
storeChannel := make(StoreChannel, 1)