mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-24 12:50:50 +08:00
Fixing some small merge issues and ensure docker runs the backend properly
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user