Skip to content

Commit

Permalink
Fix counter in DB
Browse files Browse the repository at this point in the history
  • Loading branch information
violog committed May 9, 2024
1 parent 3931b2e commit 368860b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/data/pg/claims.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (q *claimsQ) Count() (int, error) {
var result struct {
Count int `db:"count"`
}
err := q.db.Select(&result, q.count)
err := q.db.Get(&result, q.count)
return result.Count, err
}

Expand Down

0 comments on commit 368860b

Please sign in to comment.