Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ type ArtistRepository interface {
|
||||
Put(m *Artist) error
|
||||
Get(id string) (*Artist, error)
|
||||
GetByName(name string) (*Artist, error)
|
||||
PurgeInactive(active *Artists) error
|
||||
PurgeInactive(active Artists) error
|
||||
}
|
||||
|
||||
type Artists []Artist
|
||||
|
||||
Reference in New Issue
Block a user