Skip to content

Commit

Permalink
fix(update-job-hook): use put for job configuration update
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jan 13, 2021
1 parent aa51d10 commit bc884e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/hooks/jobs/use-update-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import { useDataEngine } from '@dhis2/app-runtime'
import history from '../../services/history'
import formatError from '../../services/format-error'

/**
* A partial mutation, or PATCH, because PUT isn't allowed for this endpoint
*/

const mutation = {
resource: 'jobConfigurations',
type: 'update',
partial: true,
id: /* istanbul ignore next */ ({ id }) => id,
data: /* istanbul ignore next */ ({ job }) => job,
}
Expand Down

0 comments on commit bc884e2

Please sign in to comment.