fix: correctly cycle tracks in backfill (#138)

This commit is contained in:
Gabe Farrell 2026-01-14 12:46:17 -05:00 committed by GitHub
parent 231e751be3
commit 8223a29be6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 1 deletions

View file

@ -21,6 +21,7 @@ func BackfillTrackDurationsFromMusicBrainz(
var from int32 = 0
for {
l.Debug().Int32("ID", from).Msg("Fetching tracks to backfill from ID")
tracks, err := store.GetTracksWithNoDurationButHaveMbzID(ctx, from)
if err != nil {
return fmt.Errorf("BackfillTrackDurationsFromMusicBrainz: failed to fetch tracks for duration backfill: %w", err)