fix(simulation): update github webhook and simulate script for payout
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user