Skip to content

Commit

Permalink
fix: rename data to context
Browse files Browse the repository at this point in the history
this caused bundling errors
  • Loading branch information
wojtek-krysiak committed Oct 13, 2020
1 parent 79ff381 commit 3d19230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/actions/edit/edit-action.ts
Expand Up @@ -28,8 +28,8 @@ export const EditAction: Action<RecordActionResponse> = {
* @implements Action#handler
* @memberof module:EditAction
*/
handler: async (request, response, data) => {
const { record, resource, currentAdmin, h, translateMessage, context } = data
handler: async (request, response, context) => {
const { record, resource, currentAdmin, h, translateMessage } = context
if (!record) {
throw new NotFoundError([
`Record of given id ("${request.params.recordId}") could not be found`,
Expand Down

0 comments on commit 3d19230

Please sign in to comment.