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:
Kasper Fabricius Kristensen
2024-11-27 13:06:04 +01:00
committed by GitHub
parent 00d0c927dd
commit 030ee87150
2 changed files with 17 additions and 2 deletions

View File

@@ -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)