refactor: fix rest filter

This commit is contained in:
Deluan
2020-01-31 16:47:13 -05:00
committed by Deluan Quintão
parent d9f61a278c
commit 44671c59c0
8 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func (r *playlistRepository) GetWithTracks(id string) (*model.Playlist, error) {
}
mfRepo := NewMediaFileRepository(r.ctx, r.ormer)
pls.Duration = 0
var newTracks model.MediaFiles
newTracks := model.MediaFiles{}
for _, t := range pls.Tracks {
mf, err := mfRepo.Get(t.ID)
if err != nil {