diff options
author | Jonathan <jonfritz@gmail.com> | 2017-12-05 16:32:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 16:32:23 -0500 |
commit | c171872472672d129e1e4dbc99930d75a4cd59c7 (patch) | |
tree | dde4e50cf563b8356afdade6255b8f9e22b9de9a /store/storetest/mocks | |
parent | e7725106ed5b435c625a63691d99acc197a2106a (diff) | |
download | chat-c171872472672d129e1e4dbc99930d75a4cd59c7.tar.gz chat-c171872472672d129e1e4dbc99930d75a4cd59c7.tar.bz2 chat-c171872472672d129e1e4dbc99930d75a4cd59c7.zip |
PLT-8233: Purge ChannelMemberHistory Data when Data Retention Job runs (#7937)
* Changed the channel member history purge function to match pattern established by other data retention purge methods
* Simplifying the channel member history store and associated tests
* Regenerating mocks
* Using a constant
Diffstat (limited to 'store/storetest/mocks')
-rw-r--r-- | store/storetest/mocks/ChannelMemberHistoryStore.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/store/storetest/mocks/ChannelMemberHistoryStore.go b/store/storetest/mocks/ChannelMemberHistoryStore.go index 4ac0967f9..16155b982 100644 --- a/store/storetest/mocks/ChannelMemberHistoryStore.go +++ b/store/storetest/mocks/ChannelMemberHistoryStore.go @@ -60,13 +60,13 @@ func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId stri return r0 } -// PurgeHistoryBefore provides a mock function with given fields: time, channelId -func (_m *ChannelMemberHistoryStore) PurgeHistoryBefore(time int64, channelId string) store.StoreChannel { - ret := _m.Called(time, channelId) +// PermanentDeleteBatch provides a mock function with given fields: endTime, limit +func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) store.StoreChannel { + ret := _m.Called(endTime, limit) var r0 store.StoreChannel - if rf, ok := ret.Get(0).(func(int64, string) store.StoreChannel); ok { - r0 = rf(time, channelId) + if rf, ok := ret.Get(0).(func(int64, int64) store.StoreChannel); ok { + r0 = rf(endTime, limit) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(store.StoreChannel) |