mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-10-01 11:41:14 +08:00
Fixing some small merge issues and ensure docker runs the backend properly
This commit is contained in:
1 parent
a926703eec
commit
dbfa77e8b7
6 files changed
+5
-33
No files matched your search
@@ -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