mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
improve emails errors
This commit is contained in:
@@ -149,7 +149,10 @@ export async function sendTxn (mailingInfoArray, emailType, variables, personalV
|
|||||||
backoff: { delay: 10 * 60 * 1000, type: 'fixed' },
|
backoff: { delay: 10 * 60 * 1000, type: 'fixed' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}).json().catch(err => logger.error(err, 'Error while sending an email.'));
|
}).json().catch(err => logger.error(err, {
|
||||||
|
extraMessage: 'Error while sending an email.',
|
||||||
|
emailType,
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user