diff --git a/worker/src/task/5-routes.ts b/worker/src/task/5-routes.ts index 56c1961..800535b 100644 --- a/worker/src/task/5-routes.ts +++ b/worker/src/task/5-routes.ts @@ -75,11 +75,11 @@ export async function routes() { taskId: TASK_ID, action: "add-todo-status", stakingKey, - } + }; const middleServerSignature = await namespaceWrapper.payloadSigning(middleServerPayload, secretKey); console.error("[TASK] Error summarizing repository:", message); console.log("[TASK] middleServerSignature", middleServerSignature); - + const middleServerResponse = await fetch(`${middleServerUrl}/summarizer/worker/add-todo-status`, { method: "POST", headers: { @@ -94,8 +94,6 @@ export async function routes() { return; } - - if (!publicKey) { throw new Error("No public key found"); } diff --git a/worker/src/utils/constant.ts b/worker/src/utils/constant.ts index 8456abe..8c204c0 100644 --- a/worker/src/utils/constant.ts +++ b/worker/src/utils/constant.ts @@ -57,6 +57,6 @@ export const actionMessage = { export const defaultBountyMarkdownFile = "https://raw.githubusercontent.com/koii-network/prometheus-swarm-bounties/master/README.md"; -export const customReward = 400 * 10 ** 9; // This should be in ROE! +export const customReward = 1; // This should be in ROE! -export const middleServerUrl = "https://builder247-prod.dev.koii.network"; +export const middleServerUrl = "https://builder247-test.dev.koii.network";