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.

simplify addAppAchAccount

Steven Teyab3582f2aba3
diff --git a/apps/web/lib/dots/add-app-ach-account.ts b/apps/web/lib/dots/add-app-ach-account.ts
index b03c7a6fe9..c2fe21c4de 100644
--- a/apps/web/lib/dots/add-app-ach-account.ts
+++ b/apps/web/lib/dots/add-app-ach-account.ts
@@ -1,11 +1,5 @@
-import z from "../zod";
import { dotsFetch } from "./fetch";
-const schema = z.object({
- name: z.string(),
- mask: z.string(),
-});
-
export const addAppAchAccount = async ({
dotsAppId,
accountNumber,
@@ -17,7 +11,7 @@ export const addAppAchAccount = async ({
routingNumber: string;
accountType: "checking" | "savings";
}) => {
- const response = await dotsFetch(`/apps/${dotsAppId}/ach-account`, {
+ return await dotsFetch(`/apps/${dotsAppId}/ach-account`, {
method: "PUT",
body: {
account_number: accountNumber,
@@ -25,6 +19,4 @@ export const addAppAchAccount = async ({
account_type: accountType,
},
});
-
- return schema.parse(response);
};