From dae69072f62a60ed59e873adf96d4580f8d6dc09 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Tue, 30 Jul 2019 15:45:07 +0200 Subject: [PATCH] Removed unused 'setup.completed' event - Without the event it's possible to simplify sendNotification method to just use email address of the user --- core/server/services/auth/setup.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/server/services/auth/setup.js b/core/server/services/auth/setup.js index f8cbf953a9..6f244578a2 100644 --- a/core/server/services/auth/setup.js +++ b/core/server/services/auth/setup.js @@ -87,8 +87,6 @@ function sendNotification(setupUser, mailAPI) { ownerEmail: setupUser.email }; - common.events.emit('setup.completed', setupUser); - if (config.get('sendWelcomeEmail')) { return mail.utils.generateContent({data: data, template: 'welcome'}) .then((content) => {