This commit is contained in:
sentriz
2024-03-11 19:10:43 +01:00
parent 6b8d6b7184
commit 6ce1fe5a7e
4 changed files with 10 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ func (a *ArtistInfoCache) Refresh() error {
if err := q.Find(&artist).Error; err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
return fmt.Errorf("finding non cached artist: %w", err)
}
if artist.ID == 0 {
return nil
}