fix(dashboard): Align casing of fields in reset password event (#10313)
* fix(dashboard): Align casing of fields in reset password event * update changeset
This commit is contained in:
committed by
GitHub
parent
00d0c927dd
commit
030ee87150
7
.changeset/modern-birds-care.md
Normal file
7
.changeset/modern-birds-care.md
Normal file
@@ -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.
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user