0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Removed unused 'setup.completed' event

- Without the event it's possible to simplify sendNotification method to just use email address of the user
This commit is contained in:
Nazar Gargol 2019-07-30 15:45:07 +02:00
parent 7b97c1ada1
commit dae69072f6

View file

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