feat: added placeholder for routes failed task, add not finished task
This commit is contained in:
@ -66,7 +66,7 @@ export async function audit(cid: string, roundNumber: number, submitterKey: stri
|
|||||||
submission: decodeResult,
|
submission: decodeResult,
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
console.log(`[AUDIT] Audit result:`, auditResult);
|
||||||
const auditResultJson = await auditResult.json();
|
const auditResultJson = await auditResult.json();
|
||||||
console.log(`[AUDIT] Audit result JSON:`, auditResultJson);
|
console.log(`[AUDIT] Audit result JSON:`, auditResultJson);
|
||||||
|
|
||||||
|
@ -143,4 +143,10 @@ export async function routes() {
|
|||||||
res.status(400).json({ error: "Failed to save PR" });
|
res.status(400).json({ error: "Failed to save PR" });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: To be completed
|
||||||
|
app.post("/failed-task", async (req, res) => {
|
||||||
|
res.status(200).json({ result: "Successfully saved task result" });
|
||||||
|
});
|
||||||
|
@ -16,6 +16,7 @@ export const status = {
|
|||||||
NO_DATA_FOR_THIS_ROUND: "No data for this round",
|
NO_DATA_FOR_THIS_ROUND: "No data for this round",
|
||||||
SAVING_TODO_PR_FAILED: "Summarizer todo PR not saved",
|
SAVING_TODO_PR_FAILED: "Summarizer todo PR not saved",
|
||||||
SAVING_TODO_PR_SUCCEEDED: "Summarizer todo PR saved",
|
SAVING_TODO_PR_SUCCEEDED: "Summarizer todo PR saved",
|
||||||
|
NOT_FINISHED_TASK: "Not finished task",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const errorMessage = {
|
export const errorMessage = {
|
||||||
|
Reference in New Issue
Block a user