Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Nov 22, 2024
1 parent ee3a57e commit 30b4ea5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions api-client/src/runs/updateErrorRecoveryPolicy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type {
ErrorRecoveryPolicy,
IfMatchType,
UpdateErrorRecoveryPolicyRequest,
ErrorRecoveryPolicyResponse,
UpdateErrorRecoveryPolicyResponse,
} from './types'
import type { RunCommandError, RunTimeCommand } from '@opentrons/shared-data'

Expand All @@ -20,15 +20,13 @@ export function updateErrorRecoveryPolicy(
config: HostConfig,
runId: string,
policyRules: RecoveryPolicyRulesParams
): ResponsePromise<ErrorRecoveryPolicyResponse> {
): ResponsePromise<UpdateErrorRecoveryPolicyResponse> {
const policy = buildErrorRecoveryPolicyBody(policyRules)

return request<ErrorRecoveryPolicyResponse, UpdateErrorRecoveryPolicyRequest>(
PUT,
`/runs/${runId}/errorRecoveryPolicy`,
{ data: policy },
config
)
return request<
UpdateErrorRecoveryPolicyResponse,
UpdateErrorRecoveryPolicyRequest
>(PUT, `/runs/${runId}/errorRecoveryPolicy`, { data: policy }, config)
}

function buildErrorRecoveryPolicyBody(
Expand Down

0 comments on commit 30b4ea5

Please sign in to comment.