Skip to content

Commit e4ef3ff

Browse files
committed
Error fix ArtistId null
1 parent 8ede149 commit e4ef3ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

MiniMediaMetadataAPI.Application/Models/Database/Spotify/SpotifyAlbumModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SpotifyAlbumModel
1313
public string Url { get; set; }
1414
public string Label { get; set; }
1515
public int Popularity { get; set; }
16-
public string ArtistId { get; set; }
16+
public string? ArtistId { get; set; }
1717

1818
public List<SpotifyAlbumExternalIdModel> ExternalIds { get; set; }
1919
public List<SpotifyAlbumImageModel>? Images { get; set; }

MiniMediaMetadataAPI.Application/Services/SearchTrackService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public async Task<SearchTrackResponse> SearchTrack(
5353
Album = new SearchTrackAlbumEntity
5454
{
5555
Id = track.Album.AlbumId,
56-
ArtistId = track.Album.ArtistId.ToString(),
56+
ArtistId = track.Album.ArtistId?.ToString(),
5757
Name = track.Album.Name,
5858
Type = track.Album.Type,
5959
ReleaseDate = track.Album.ReleaseDate,

0 commit comments

Comments
 (0)