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

main
Aditya Thakral 1 year ago
parent a76aba62f2
commit b0d57a30bb
  1. 6
      index.ts

@ -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, () => {

Loading…
Cancel
Save