Reload mailer config once admin updates Mailtrain settings
This commit is contained in:
parent
9946f70992
commit
50f6c8d101
6 changed files with 27 additions and 11 deletions
|
@ -544,3 +544,10 @@ let sendLoop = () => {
|
|||
};
|
||||
|
||||
sendLoop();
|
||||
|
||||
process.on('message', m => {
|
||||
if (m && m.reload) {
|
||||
log.info('Sender/' + process.pid, 'Reloading mailer config');
|
||||
mailer.update();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue