Skip to content

Commit

Permalink
fix missing error check
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Jun 13, 2024
1 parent 0fa2e73 commit a0c6a5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage/mysql/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ func enqueue(ctx context.Context, tx *sql.Tx, ids []string, cmd *mdm.Command) er
`INSERT INTO commands (command_uuid, request_type, command) VALUES (?, ?, ?);`,
cmd.CommandUUID, cmd.Command.RequestType, cmd.Raw,
)
if err != nil {
return err
}
query := `INSERT INTO enrollment_queue (id, command_uuid) VALUES (?, ?)`
query += strings.Repeat(", (?, ?)", len(ids)-1)
args := make([]interface{}, len(ids)*2)
Expand Down

0 comments on commit a0c6a5d

Please sign in to comment.