mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor(core): Decouple emailing and workflow sharing from internal hooks (no-changelog) (#10326)
This commit is contained in:
@@ -160,12 +160,11 @@ export class UserService {
|
||||
});
|
||||
} catch (e) {
|
||||
if (e instanceof Error) {
|
||||
Container.get(InternalHooks).onEmailFailed({
|
||||
this.eventService.emit('email-failed', {
|
||||
user: owner,
|
||||
message_type: 'New user invite',
|
||||
public_api: false,
|
||||
messageType: 'New user invite',
|
||||
publicApi: false,
|
||||
});
|
||||
this.eventService.emit('email-failed', { user: owner, messageType: 'New user invite' });
|
||||
this.logger.error('Failed to send email', {
|
||||
userId: owner.id,
|
||||
inviteAcceptUrl,
|
||||
|
||||
Reference in New Issue
Block a user