fix(simulation): update github webhook and simulate script for payout
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-08 10:55:23 +08:00
parent 2652263f52
commit 995e3aee48
2 changed files with 47 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
import { NextRequest, NextResponse } from "next/server";
import { prisma } from "@/lib/prisma";
import { capturePayment } from "@/lib/payment";
import { capturePayment, executePayout } from "@/lib/payment";
import { TaskStatus } from "@agent-bounty/contracts";
export async function POST(request: NextRequest) {
@@ -56,6 +56,7 @@ export async function POST(request: NextRequest) {
// Process payout
await capturePayment(tx, task.id, `${claim.id}-capture-pr`);
await executePayout(tx, task.id, claim.developer_wallet, claim.held_amount, claim.held_currency, `${claim.id}-payout-pr`);
}
});