mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-19 20:26:33 -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
|
|
@ -99,7 +99,7 @@ func (d *Psql) GetAlbum(ctx context.Context, opts db.GetAlbumOpts) (*models.Albu
|
|||
}
|
||||
|
||||
firstListen, err := d.q.GetFirstListenFromRelease(ctx, ret.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