Merge branch 'master' into os-lyrics

This commit is contained in:
Kendall Garner 2023-12-09 14:29:29 -08:00
commit 66ca4ccecf
No known key found for this signature in database
GPG key ID: 18D2767419676C87
69 changed files with 758 additions and 438 deletions

View file

@ -84,7 +84,7 @@ func (m *MockAlbumRepo) IncPlayCount(id string, timestamp time.Time) error {
}
if d, ok := m.data[id]; ok {
d.PlayCount++
d.PlayDate = timestamp
d.PlayDate = &timestamp
return nil
}
return model.ErrNotFound

View file

@ -67,7 +67,7 @@ func (m *MockArtistRepo) IncPlayCount(id string, timestamp time.Time) error {
}
if d, ok := m.data[id]; ok {
d.PlayCount++
d.PlayDate = timestamp
d.PlayDate = &timestamp
return nil
}
return model.ErrNotFound

View file

@ -79,7 +79,7 @@ func (m *MockMediaFileRepo) IncPlayCount(id string, timestamp time.Time) error {
}
if d, ok := m.data[id]; ok {
d.PlayCount++
d.PlayDate = timestamp
d.PlayDate = &timestamp
return nil
}
return model.ErrNotFound