docs: add TODOs

This commit is contained in:
Jack Michaud
2023-01-03 20:54:49 -05:00
parent 5ed4131720
commit 7b5f702a00
2 changed files with 5 additions and 0 deletions
@@ -22,4 +22,8 @@ describe("Contract test for Oasst API", function () {
});
expect(await oasstApiClient.ackTask(task.id, "321")).to.be.null;
});
// TODO Add test for 204
// TODO Add test for parsing >=300, throwing an OasstError
// TODO Add test for parsing >=300, throwing a generic error
});
+1
View File
@@ -36,6 +36,7 @@ const handler = async (req, res) => {
// Send the interaction to the Task Backend. This automatically fetches the
// next task in the sequence (or the done task).
// TODO Move this into OasstApiClient.
const interactionRes = await fetch(`${process.env.FASTAPI_URL}/api/v1/tasks/interaction`, {
method: "POST",
headers: {