check rows.Err()

This commit is contained in:
Elio Bischof 2023-06-30 16:28:03 +02:00
parent 5f7e3b2968
commit e9344df886
No known key found for this signature in database
GPG Key ID: 7B383FDE4DDBF1BD

View File

@ -140,6 +140,9 @@ func prepareMilestonesQuery(ctx context.Context, db prepareDatabase) (sq.SelectB
if err := rows.Close(); err != nil {
return nil, errors.ThrowInternal(err, "QUERY-CK9mI", "Errors.Query.CloseRows")
}
if err := rows.Err(); err != nil {
return nil, errors.ThrowInternal(err, "QUERY-asLsI", "Errors.Internal")
}
return &Milestones{
Milestones: milestones,
SearchResponse: SearchResponse{