GetStarred now returns starred songs

This commit is contained in:
Deluan
2016-03-23 19:02:58 -04:00
parent 1ed8c60130
commit d59394c653
5 changed files with 34 additions and 3 deletions
+2 -1
View File
@@ -28,7 +28,7 @@ type MediaFile struct {
PlayDate time.Time
Rating int
Starred bool
StarredAt time.Time
StarredAt time.Time `idx:"Starred"`
CreatedAt time.Time
UpdatedAt time.Time
}
@@ -50,5 +50,6 @@ type MediaFileRepository interface {
Put(m *MediaFile) error
Get(id string) (*MediaFile, error)
FindByAlbum(albumId string) (MediaFiles, error)
GetStarred(options QueryOptions) (MediaFiles, error)
PurgeInactive(active MediaFiles) ([]string, error)
}