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

@ -380,7 +380,7 @@ func (d *Psql) SetPrimaryTrackArtist(ctx context.Context, id int32, artistId int
func (d *Psql) GetTracksWithNoDurationButHaveMbzID(ctx context.Context, from int32) ([]*models.Track, error) {
results, err := d.q.GetTracksWithNoDurationButHaveMbzID(ctx, repository.GetTracksWithNoDurationButHaveMbzIDParams{
Limit: 20,
ID: 0,
ID: from,
})
if errors.Is(err, pgx.ErrNoRows) {
return nil, nil