mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-17 03:06:42 -07:00
fix: ensure error checks for ErrNoRows
This commit is contained in:
parent
800c77d05e
commit
0b7ecb0b96
3 changed files with 5 additions and 5 deletions
|
|
@ -90,7 +90,7 @@ func (d *Psql) GetTrack(ctx context.Context, opts db.GetTrackOpts) (*models.Trac
|
|||
}
|
||||
|
||||
firstListen, err := d.q.GetFirstListenFromTrack(ctx, track.ID)
|
||||
if err != nil {
|
||||
if err != nil && !errors.Is(err, pgx.ErrNoRows) {
|
||||
return nil, fmt.Errorf("GetAlbum: GetFirstListenFromRelease: %w", err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue