Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

small fix

Kiran K53607733487c
diff --git a/apps/web/app/api/cron/invoices/utils.ts b/apps/web/app/api/cron/invoices/utils.ts
index 68ce4f21ee..2c885e906a 100644
--- a/apps/web/app/api/cron/invoices/utils.ts
+++ b/apps/web/app/api/cron/invoices/utils.ts
@@ -37,7 +37,7 @@ export const processInvoice = async ({ invoiceId }: { invoiceId: string }) => {
const payouts = await prisma.payout.findMany({
where: {
invoiceId,
- status: "pending",
+ status: "processing",
},
select: {
id: true,
@@ -53,7 +53,7 @@ export const processInvoice = async ({ invoiceId }: { invoiceId: string }) => {
});
if (payouts.length === 0) {
- throw new Error(`No payouts found for invoice ${invoiceId}.`);
+ throw new Error(`No payouts found for the invoice ${invoiceId}.`);
}
const { workspace } = invoice.program;