Skip to content

Commit 45c433d

Browse files
committed
Fix parameter ordering in dbGetCountForMetrics
1 parent 6c32527 commit 45c433d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocp/data/fulfillment/postgres/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func dbGetCountForMetrics(ctx context.Context, db *sqlx.DB, state fulfillment.St
181181
WHERE state = $1 AND fulfillment_type != $2
182182
GROUP BY fulfillment_type
183183
`
184-
err := db.SelectContext(ctx, &countedTypes, query, exclusion, state)
184+
err := db.SelectContext(ctx, &countedTypes, query, state, exclusion)
185185
if err != nil {
186186
return nil, err
187187
}

0 commit comments

Comments
 (0)