Label Initial Prompt

This commit is contained in:
AbdBarho
2023-01-07 17:24:43 +01:00
parent 4ecdc57621
commit 53814d77ab
9 changed files with 210 additions and 25 deletions
+6 -1
View File
@@ -35,7 +35,12 @@ const handler = async (req, res) => {
},
});
const newTask = await oasstApiClient.interactTask(update_type, id, interaction.id, content, token);
let newTask;
try {
newTask = await oasstApiClient.interactTask(update_type, id, interaction.id, content, token);
} catch (err) {
return res.status(500).json(err);
}
// Stores the new task with our database.
const newRegisteredTask = await prisma.registeredTask.create({