From 9a93be2752ec81ed1f634adbb63aef2d1c5272de Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 19 May 2021 11:28:09 +0530 Subject: Applied linter fixes. --- start/events.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'start/events.js') diff --git a/start/events.js b/start/events.js index 1e4ed5f..c4076cc 100644 --- a/start/events.js +++ b/start/events.js @@ -12,12 +12,14 @@ ${Env.get('APP_URL')}/user/reset?token=${encodeURIComponent(token)} This message was sent automatically. Please do not reply. `; -console.log('Sending message', body); + console.log('Sending message', body); try { await Mail.raw(body, (message) => { - message.subject('[Ferdi] Reset your password') - message.from(Env.get('MAIL_SENDER')) - message.to(user.email) + message.subject('[Ferdi] Reset your password'); + message.from(Env.get('MAIL_SENDER')); + message.to(user.email); }); - } catch(e) {} -}); \ No newline at end of file + } catch (e) { + console.log(`Couldn't send mail: ${e}`); + } +}); -- cgit v1.2.3-70-g09d2