Small change.
This commit is contained in:
+1
-2
@@ -52,8 +52,7 @@ app.post('/api', async (req, res) => {
|
||||
await insertDoc(req.body);
|
||||
|
||||
res.send("DONE!");
|
||||
|
||||
const dataResult = await getData(pageToVisit, req.body._id);
|
||||
getData(pageToVisit, req.body._id);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
insertDoc(req.body);
|
||||
|
||||
Reference in New Issue
Block a user