mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-06 05:57:35 +03:00
Renamed Id to ID, following GoLang convention
This commit is contained in:
parent
018352463f
commit
40904b220e
35 changed files with 122 additions and 122 deletions
|
@ -30,7 +30,7 @@ func (m *MockMediaFile) SetData(j string, size int) {
|
|||
fmt.Println("ERROR: ", err)
|
||||
}
|
||||
for _, a := range l {
|
||||
m.data[a.Id] = a
|
||||
m.data[a.ID] = a
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ func (m *MockMediaFile) FindByAlbum(artistId string) (domain.MediaFiles, error)
|
|||
var res = make(domain.MediaFiles, len(m.data))
|
||||
i := 0
|
||||
for _, a := range m.data {
|
||||
if a.AlbumId == artistId {
|
||||
if a.AlbumID == artistId {
|
||||
res[i] = a
|
||||
i++
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue