Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: console error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Mar 10, 2023
1 parent 871f67f commit 93d3a52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/src/controllers/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ router.post(
html,
},
}),
}).catch((err) => capture(err, { extra: { route: "POST /mail", body: req.body } }));
}).catch((err) => {
console.log("✍️ catch error:", err);
capture(err, { extra: { route: "POST /mail", body: req.body } });
});

console.log("✍️ response tipimail:", apiRes);
if (apiRes?.ok) {
return res.status(200).json({ ok: true });
}
Expand Down

0 comments on commit 93d3a52

Please sign in to comment.