create function findValue

This commit is contained in:
joseph le 2023-11-23 15:46:48 +07:00
parent 7333703234
commit 1c38d28b57
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ Route.post("/api/find-value", async ({ request, response }) => {
return "Error:"+ error;
}
console.log("stdout ", stdout)
response.status(200).send(stdout);
setTimeout(() => {
response.status(200).send(stdout.toString());
}, 2000);
});
} catch (error) {
console.log(error);