Refactored PurgeInactive as a "generic" function.

Also delete indexes when removing records
This commit is contained in:
Deluan
2016-03-18 19:32:49 -04:00
parent cac352b18c
commit 3790aa45e4
11 changed files with 57 additions and 75 deletions
+1 -1
View File
@@ -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)
}