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.

format

Kiran K39cb7e655c0f
diff --git a/apps/web/app/(ee)/api/admin/revenue/get-rolling-payout-fees.ts b/apps/web/app/(ee)/api/admin/revenue/get-rolling-payout-fees.ts
index 336a6f4e71..d470d13cdc 100644
--- a/apps/web/app/(ee)/api/admin/revenue/get-rolling-payout-fees.ts
+++ b/apps/web/app/(ee)/api/admin/revenue/get-rolling-payout-fees.ts
@@ -13,7 +13,10 @@ export function computeRollingAveragePayoutFees(
for (let i = 0; i < timeseries.length; i++) {
const windowStart = subMonths(timeseries[i].date, windowMonths);
- while (windowStartIdx < i && timeseries[windowStartIdx].date < windowStart) {
+ while (
+ windowStartIdx < i &&
+ timeseries[windowStartIdx].date < windowStart
+ ) {
windowSum -= timeseries[windowStartIdx].fees;
windowStartIdx++;
}
diff --git a/apps/web/lib/partners/get-partner-bank-account.ts b/apps/web/lib/partners/get-partner-bank-account.ts
index b134d0c7d7..52da817782 100644
--- a/apps/web/lib/partners/get-partner-bank-account.ts
+++ b/apps/web/lib/partners/get-partner-bank-account.ts
@@ -1,6 +1,4 @@
-import { prisma } from "@/lib/prisma";
import { stripe } from "@/lib/stripe";
-import { waitUntil } from "@vercel/functions";
import Stripe from "stripe";
import * as z from "zod/v4";
@@ -41,7 +39,9 @@ export const getPartnerBankAccount = async (stripeAccount: string) => {
if (isApplicationAccessRevoked) {
// TODO: recompute payout state + reset payoutsEnabledAt / payoutMethodHash if needed
- console.warn("No account connected – application access may have been revoked.")
+ console.warn(
+ "No account connected – application access may have been revoked.",
+ );
}
return null;
diff --git a/apps/web/lib/webhook/failure.ts b/apps/web/lib/webhook/failure.ts
index feb4a88faa..e398a8e5f3 100644
--- a/apps/web/lib/webhook/failure.ts
+++ b/apps/web/lib/webhook/failure.ts
@@ -3,11 +3,11 @@ import { sendEmail } from "@dub/email";
import WebhookDisabled from "@dub/email/templates/webhook-disabled";
import WebhookFailed from "@dub/email/templates/webhook-failed";
import { Webhook } from "@prisma/client";
+import { syncWorkspaceWebhookStatus } from "./click-webhook-workspaces";
import {
WEBHOOK_FAILURE_DISABLE_THRESHOLD,
WEBHOOK_FAILURE_NOTIFY_THRESHOLDS,
} from "./constants";
-import { syncWorkspaceWebhookStatus } from "./click-webhook-workspaces";
export const handleWebhookFailure = async (webhookId: string) => {
const webhook = await prisma.webhook.update({
diff --git a/apps/web/lib/webhook/transform.ts b/apps/web/lib/webhook/transform.ts
index 55e75ec44b..8b66d9b5a7 100644
--- a/apps/web/lib/webhook/transform.ts
+++ b/apps/web/lib/webhook/transform.ts
@@ -6,10 +6,10 @@ import { nanoid, toCamelCase } from "@dub/utils";
import { ExpandedLink, transformLink } from "../api/links/utils/transform-link";
import { generateRandomName } from "../names";
import { ClickEventTB } from "../types";
-import type { WebhookTrigger } from "./types";
import { clickEventSchema } from "../zod/schemas/clicks";
import { WEBHOOK_EVENT_ID_PREFIX } from "./constants";
import { leadWebhookEventSchema, saleWebhookEventSchema } from "./schemas";
+import type { WebhookTrigger } from "./types";
export const transformClickEventData = (
data: ClickEventTB & {
diff --git a/apps/web/ui/messages/messages-panel.tsx b/apps/web/ui/messages/messages-panel.tsx
index cf209c04eb..58adce41b6 100644
--- a/apps/web/ui/messages/messages-panel.tsx
+++ b/apps/web/ui/messages/messages-panel.tsx
@@ -1,4 +1,9 @@
-import { Message, MessageAttachment, PartnerProps, ProgramProps } from "@/lib/types";
+import {
+ Message,
+ MessageAttachment,
+ PartnerProps,
+ ProgramProps,
+} from "@/lib/types";
import {
AnimatedSizeContainer,
Check2,
diff --git a/apps/web/ui/modals/send-test-webhook-modal.tsx b/apps/web/ui/modals/send-test-webhook-modal.tsx
index b8281e25f3..cec9ee9f23 100644
--- a/apps/web/ui/modals/send-test-webhook-modal.tsx
+++ b/apps/web/ui/modals/send-test-webhook-modal.tsx
@@ -1,8 +1,8 @@
import { sendTestWebhookEvent } from "@/lib/actions/send-test-webhook";
import useWorkspace from "@/lib/swr/use-workspace";
import { WebhookProps } from "@/lib/types";
-import type { WebhookTrigger } from "@/lib/webhook/types";
import { WEBHOOK_TRIGGER_DESCRIPTIONS } from "@/lib/webhook/constants";
+import type { WebhookTrigger } from "@/lib/webhook/types";
import { Button, Combobox, ComboboxOption, Modal } from "@dub/ui";
import { useAction } from "next-safe-action/hooks";
import {
diff --git a/apps/web/ui/webhooks/folder-selector.tsx b/apps/web/ui/webhooks/folder-selector.tsx
index 3a0f99da62..f9a2305081 100644
--- a/apps/web/ui/webhooks/folder-selector.tsx
+++ b/apps/web/ui/webhooks/folder-selector.tsx
@@ -13,9 +13,7 @@ const MAX_DISPLAYED_FOLDERS = 10;
const getFolderOption = (folder: Folder) => ({
value: folder.id,
label: folder.name,
- icon: (
- <FolderIcon className="mr-1 shrink-0" folder={folder} shape="square" />
- ),
+ icon: <FolderIcon className="mr-1 shrink-0" folder={folder} shape="square" />,
meta: {
folder,
},