create function findValue
This commit is contained in:
parent
659067b519
commit
4ee41ea6e9
|
|
@ -188,13 +188,8 @@ Route.post("/api/find-value", async ({ request, response }) => {
|
|||
return "Error:"+ error;
|
||||
}
|
||||
console.log("stdout ", typeof stdout)
|
||||
if (stdout !== "") {
|
||||
result += stdout;
|
||||
} else {
|
||||
result += stderr;
|
||||
}
|
||||
|
||||
response.status(200).send(result);
|
||||
response.status(200).send(stdout);
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
|
|
|||
Loading…
Reference in New Issue