diff --git a/packages/cli/src/UserManagement/routes/me.ts b/packages/cli/src/UserManagement/routes/me.ts index c94f3cab9b..78ff4eca49 100644 --- a/packages/cli/src/UserManagement/routes/me.ts +++ b/packages/cli/src/UserManagement/routes/me.ts @@ -66,7 +66,7 @@ export function meNamespace(this: N8nApp): void { user_id: req.user.id, fields_changed: updatedkeys, }); - await this.externalHooks.run('user.profile.update', [ currentEmail, req.body ]); + await this.externalHooks.run('user.profile.update', [currentEmail, req.body]); return sanitizeUser(user); }, @@ -112,7 +112,7 @@ export function meNamespace(this: N8nApp): void { fields_changed: ['password'], }); - await this.externalHooks.run('user.password.update', [ user.email, req.user.password ]); + await this.externalHooks.run('user.password.update', [user.email, req.user.password]); return { success: true }; }), diff --git a/packages/cli/test/integration/shared/utils.ts b/packages/cli/test/integration/shared/utils.ts index eaff862f10..9a4f2e996b 100644 --- a/packages/cli/test/integration/shared/utils.ts +++ b/packages/cli/test/integration/shared/utils.ts @@ -98,7 +98,7 @@ export async function initTestServer({ if (!endpointGroups) return testServer.app; - if (endpointGroups.includes('credentials')) { + if (endpointGroups.includes('credentials') || endpointGroups.includes('me')) { testServer.externalHooks = ExternalHooks(); }