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.

remove idempotency for now

Steven Tey1f6c8c751453
diff --git a/apps/web/lib/dots/create-org-transfer.ts b/apps/web/lib/dots/create-org-transfer.ts
index 0354915a91..9e2f463ff9 100644
--- a/apps/web/lib/dots/create-org-transfer.ts
+++ b/apps/web/lib/dots/create-org-transfer.ts
@@ -3,11 +3,9 @@ import { dotsFetch } from "./fetch";
export const createOrgTransfer = async ({
amount,
dotsAppId,
- idempotencyKey,
}: {
amount: number;
dotsAppId: string;
- idempotencyKey: string;
}) => {
console.log(`Creating an org transfer of ${amount} cents`);
@@ -16,7 +14,6 @@ export const createOrgTransfer = async ({
body: {
amount,
api_app_id: dotsAppId,
- idempotency_key: idempotencyKey,
},
});
};
diff --git a/apps/web/lib/dots/create-transfer.ts b/apps/web/lib/dots/create-transfer.ts
index 30f661c204..0711b12365 100644
--- a/apps/web/lib/dots/create-transfer.ts
+++ b/apps/web/lib/dots/create-transfer.ts
@@ -4,12 +4,10 @@ export const createTransfer = async ({
amount,
dotsAppId,
dotsUserId,
- idempotencyKey,
}: {
amount: number;
dotsAppId: string;
dotsUserId: string;
- idempotencyKey: string;
}) => {
console.log(`Creating a transfer of ${amount} cents`);
@@ -19,7 +17,6 @@ export const createTransfer = async ({
body: {
user_id: dotsUserId,
amount: -amount, // negative means transfer from Business to Partner
- idempotency_key: idempotencyKey,
},
});
};
diff --git a/apps/web/lib/dots/deposit-funds.ts b/apps/web/lib/dots/deposit-funds.ts
index 8d531d543d..a3e79dd916 100644
--- a/apps/web/lib/dots/deposit-funds.ts
+++ b/apps/web/lib/dots/deposit-funds.ts
@@ -34,7 +34,6 @@ export const depositFunds = async ({
method: "POST",
body: {
amount: Number(amount) * 100, // The amount to deposit in cents
- idempotency_key: crypto.randomUUID(),
},
});