fix(cli): Fix the tests, that broke after #3919 (#3935)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2022-08-24 16:07:53 +02:00 committed by GitHub
parent cc5d9a296c
commit 544b880dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ export function meNamespace(this: N8nApp): void {
user_id: req.user.id, user_id: req.user.id,
fields_changed: updatedkeys, 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); return sanitizeUser(user);
}, },
@ -112,7 +112,7 @@ export function meNamespace(this: N8nApp): void {
fields_changed: ['password'], 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 }; return { success: true };
}), }),

View file

@ -98,7 +98,7 @@ export async function initTestServer({
if (!endpointGroups) return testServer.app; if (!endpointGroups) return testServer.app;
if (endpointGroups.includes('credentials')) { if (endpointGroups.includes('credentials') || endpointGroups.includes('me')) {
testServer.externalHooks = ExternalHooks(); testServer.externalHooks = ExternalHooks();
} }