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:
parent
7b97c1ada1
commit
dae69072f6
1 changed files with 0 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue