Update stats of Smart Playlist when it is created

Also fix loadTracks
This commit is contained in:
Deluan
2021-10-22 15:46:27 -04:00
committed by Deluan Quintão
parent 2c860edeb5
commit 806b13cf42
5 changed files with 37 additions and 12 deletions
+2 -2
View File
@@ -81,10 +81,10 @@ type mockedPlaylist struct {
model.PlaylistRepository
}
func (r *mockedPlaylist) FindByPath(path string) (*model.Playlist, error) {
func (r *mockedPlaylist) FindByPath(string) (*model.Playlist, error) {
return nil, model.ErrNotFound
}
func (r *mockedPlaylist) Put(pls *model.Playlist) error {
func (r *mockedPlaylist) Put(*model.Playlist) error {
return nil
}