Removing purged ids from the search index

This commit is contained in:
Deluan
2016-03-18 19:50:21 -04:00
parent 3790aa45e4
commit 508bf7152f
12 changed files with 44 additions and 22 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (r *albumRepository) GetAllIds() (*[]string, error) {
return &ids, nil
}
func (r *albumRepository) PurgeInactive(active domain.Albums) error {
func (r *albumRepository) PurgeInactive(active domain.Albums) ([]string, error) {
return r.purgeInactive(active, func(e interface{}) string {
return e.(domain.Album).Id
})