Skip to content

Commit 059b283

Browse files
committed
Fix dbMarkAsActivelyScheduled when used in a DB txn
1 parent 54fe284 commit 059b283

File tree

1 file changed

+1
-1
lines changed
  • pkg/code/data/fulfillment/postgres

1 file changed

+1
-1
lines changed

pkg/code/data/fulfillment/postgres/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ func dbMarkAsActivelyScheduled(ctx context.Context, db *sqlx.DB, id uint64) erro
484484
}
485485

486486
query := `UPDATE ` + fulfillmentTableName + ` SET disable_active_scheduling = false WHERE id = $1`
487-
res, err := db.ExecContext(ctx, query, id)
487+
res, err := tx.ExecContext(ctx, query, id)
488488
if err != nil {
489489
return err
490490
}

0 commit comments

Comments
 (0)