This commit is contained in:
@@ -49,6 +49,8 @@ app.post("/report", async (req, res) => {
|
|||||||
body: `${content}\n\nClass: ${className}\nLocation: ${location}`,
|
body: `${content}\n\nClass: ${className}\nLocation: ${location}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(resp);
|
||||||
|
|
||||||
if (!resp.ok) {
|
if (!resp.ok) {
|
||||||
throw new Error(`Request failed`);
|
throw new Error(`Request failed`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user