From 8195c80aa12136838ff4491fac989e0b946382b1 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 15 Sep 2017 17:35:55 +0100 Subject: PLT-7639: Batch delete methods for data retention. (#7444) --- store/layered_store.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'store/layered_store.go') 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) + }) +} -- cgit v1.2.3-1-g7c22