Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ type AlbumRepository interface {
|
||||
Get(id string) (*Album, error)
|
||||
FindByArtist(artistId string) (*Albums, error)
|
||||
GetAll(QueryOptions) (*Albums, error)
|
||||
PurgeInactive(active *Albums) error
|
||||
PurgeInactive(active Albums) error
|
||||
GetAllIds() (*[]string, error)
|
||||
GetStarred(QueryOptions) (*Albums, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user