Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ type PlaylistRepository interface {
|
||||
Put(m *Playlist) error
|
||||
Get(id string) (*Playlist, error)
|
||||
GetAll(options QueryOptions) (*Playlists, error)
|
||||
PurgeInactive(active *Playlists) error
|
||||
PurgeInactive(active Playlists) error
|
||||
}
|
||||
|
||||
type Playlists []Playlist
|
||||
|
||||
Reference in New Issue
Block a user