We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81dd552 commit c6267f1Copy full SHA for c6267f1
src/server/services/sendGrid.js
@@ -17,7 +17,10 @@ sgMail.setApiKey(config.SECRET.SENDGRID_API_KEY);
17
export const sendEmail = async (req, res) => {
18
try {
19
const msg = req.body;
20
- const result = await sgMail.send(msg);
+ // const result = await sgMail.send(msg);
21
+ const query = req.query;
22
+ if (query.throw) throw new Error('tyr/catch error');
23
+ const result = {a: 1};
24
return result;
25
} catch (error) {
26
logger.error(error);
0 commit comments