fix: forgot to return a trycatch

This commit is contained in:
Rushil Umaretiya 2023-03-06 09:50:20 -05:00
parent 70b9f22063
commit 4950ed0181

View File

@ -17,7 +17,7 @@ app.post("/", async (req, res) => {
}); });
} catch (e) { } catch (e) {
console.log(e); console.log(e);
res.status(500).send("Operator creation failed."); return res.status(500).send("Operator creation failed.");
} }
return res.status(200).json({ return res.status(200).json({