Respond first, then update website so that the pipeline has enough time to finish

This commit is contained in:
Aditya Thakral 2021-06-13 18:25:32 -04:00
parent a76aba62f2
commit b0d57a30bb
1 changed files with 3 additions and 3 deletions

View File

@ -39,10 +39,10 @@ app.post("/", async (req, res) => {
return;
}
await sleep(10);
updateWebsite();
res.send("Updating website ...");
res.send("Done!");
await sleep(15);
updateWebsite();
});
app.listen(PORT, () => {