diff options
author | George Goldberg <george@gberg.me> | 2017-09-15 17:35:55 +0100 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-15 09:35:55 -0700 |
commit | 8195c80aa12136838ff4491fac989e0b946382b1 (patch) | |
tree | da24729af5acbd3349c75923d346cfa7aa9ad95c /store/layered_store.go | |
parent | 2628022275ef64fde95545abe4634b4bd7177844 (diff) | |
download | chat-8195c80aa12136838ff4491fac989e0b946382b1.tar.gz chat-8195c80aa12136838ff4491fac989e0b946382b1.tar.bz2 chat-8195c80aa12136838ff4491fac989e0b946382b1.zip |
PLT-7639: Batch delete methods for data retention. (#7444)
Diffstat (limited to 'store/layered_store.go')
-rw-r--r-- | store/layered_store.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/store/layered_store.go b/store/layered_store.go index ac0713f57..0c6a01125 100644 --- a/store/layered_store.go +++ b/store/layered_store.go @@ -199,3 +199,9 @@ func (s *LayeredReactionStore) DeleteAllWithEmojiName(emojiName string) StoreCha return supplier.ReactionDeleteAllWithEmojiName(s.TmpContext, emojiName) }) } + +func (s *LayeredReactionStore) PermanentDeleteBatch(endTime int64, limit int64) StoreChannel { + return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { + return supplier.ReactionPermanentDeleteBatch(s.TmpContext, endTime, limit) + }) +} |