Refactored PurgeInactive as a "generic" function.
Also delete indexes when removing records
This commit is contained in:
+1
-1
@@ -48,5 +48,5 @@ type MediaFileRepository interface {
|
||||
Put(m *MediaFile) error
|
||||
Get(id string) (*MediaFile, error)
|
||||
FindByAlbum(albumId string) (*MediaFiles, error)
|
||||
PurgeInactive(active *MediaFiles) error
|
||||
PurgeInactive(active MediaFiles) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user