fix: all pass swarmbounty id

This commit is contained in:
2025-05-07 02:01:22 -03:00
parent 76d0fd6ad2
commit 214eb753fb
2 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,7 @@ async function notifyMiddleServer(params: {
body: JSON.stringify({ signature, stakingKey }), body: JSON.stringify({ signature, stakingKey }),
}); });
console.log("[TASK] Add PR Response: ", response); console.log("[SUBMISSION] Add PR Response: ", response);
if (response.status !== 200) { if (response.status !== 200) {
throw new Error(`Posting to middle server failed: ${response.statusText}`); throw new Error(`Posting to middle server failed: ${response.statusText}`);

View File

@ -73,6 +73,7 @@ export async function routes() {
if (!success) { if (!success) {
const middleServerPayload = { const middleServerPayload = {
taskId: TASK_ID, taskId: TASK_ID,
swarmBountyId,
action: "add-todo-status", action: "add-todo-status",
stakingKey, stakingKey,
}; };