Skip to content

Commit

Permalink
fix(dashboard): Align casing of fields in reset password event (#10313)
Browse files Browse the repository at this point in the history
* fix(dashboard): Align casing of fields in reset password event

* update changeset
  • Loading branch information
kasperkristensen authored Nov 27, 2024
1 parent 00d0c92 commit 030ee87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/modern-birds-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@medusajs/core-flows": patch
---

fix(core-workflows): Fix data returned from reset password event.

Deprecate `actorType` in favor of `actor_type`. The field `actorType` will be removed in a future version, so please update your code to use `actor_type` instead.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ export const generateResetPasswordTokenWorkflow = createWorkflow(
}
)


emitEventStep({
eventName: AuthWorkflowEvents.PASSWORD_RESET,
data: { entity_id: input.entityId, actorType: input.actorType, token },
data: {
entity_id: input.entityId,
/**
* Use `actor_type` instead. Will be removed in a future version.
* @deprecated
*/
actorType: input.actorType,
actor_type: input.actorType,
token,
},
})

return new WorkflowResponse(token)
Expand Down

0 comments on commit 030ee87

Please sign in to comment.