Fixing some small merge issues and ensure docker runs the backend properly

This commit is contained in:
Keith Stevens
2023-01-03 15:01:24 +09:00
parent a926703eec
commit dbfa77e8b7
6 changed files with 5 additions and 33 deletions
@@ -53,7 +53,7 @@ const handler = async (req, res) => {
});
// Update the backend with our Task ID
const ackRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/tasks/${task.id}/ack`, {
await fetch(`${process.env.FASTAPI_URL}/api/v1/tasks/${task.id}/ack`, {
method: "POST",
headers: {
"X-API-Key": process.env.FASTAPI_KEY,
@@ -64,8 +64,6 @@ const handler = async (req, res) => {
}),
});
ackRes; // calling this only to get rid of the unused variable warning... not sure if anything is intended to be done with ackRes
// Send the results to the client.
res.status(200).json(registeredTask);
};