The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Adding a response message for cases with no pending sales
Kiran Kf5b8e9b7a3e7
diff --git a/apps/web/app/api/cron/process-payouts/route.ts b/apps/web/app/api/cron/process-payouts/route.tsindex 7afcabf675..65e0135747 100644--- a/apps/web/app/api/cron/process-payouts/route.ts+++ b/apps/web/app/api/cron/process-payouts/route.ts@@ -25,7 +25,9 @@ export async function GET(req: Request) {});if (!pendingSales.length) {- return;+ return NextResponse.json({+ message: "No pending sales found. Skipping...",+ });}// TODO: Find a batter way to handle this recursively (e.g. /api/cron/usage)