Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
This commit is contained in:
@@ -233,7 +233,7 @@ func TestBaseRepository(t *testing.T) {
|
||||
Convey("When I call DeletaAll with one of the entities", func() {
|
||||
ids := make(map[string]bool)
|
||||
ids["1"] = true
|
||||
err := repo.DeleteAll(ids)
|
||||
err := repo.removeAll(ids)
|
||||
Convey("Then It should not return any error", func() {
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user