Skip to content

Commit

Permalink
add AndLock to query name
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Dec 11, 2024
1 parent 0cf4452 commit f51e34e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion engine/storage/mysql/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ FROM
WHERE
id = ?;

-- name: GetIDCommandsByStepID :many
-- name: GetIDCommandsByStepIDAndLock :many
SELECT
ic.command_uuid,
ic.request_type,
Expand Down
14 changes: 7 additions & 7 deletions engine/storage/mysql/sqlc/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion engine/storage/mysql/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (s *MySQLStorage) StoreCommandResponseAndRetrieveCompletedStep(ctx context.
Commands: []storage.StepCommandResult{*sc},
}

cmdR, err := qtx.GetIDCommandsByStepID(ctx, sqlc.GetIDCommandsByStepIDParams{
cmdR, err := qtx.GetIDCommandsByStepIDAndLock(ctx, sqlc.GetIDCommandsByStepIDAndLockParams{
EnrollmentID: id,
ID: cmdCt.StepID,
})
Expand Down

0 comments on commit f51e34e

Please sign in to comment.