From 48fb8f644f55134d451a5912f6731f705aa0931a Mon Sep 17 00:00:00 2001 From: alex 3 Date: Sun, 5 Nov 2023 23:56:56 -0500 Subject: [PATCH] remove type from link mutation --- src/server/api/routers/links.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/server/api/routers/links.ts b/src/server/api/routers/links.ts index 5ea68f5..547049c 100644 --- a/src/server/api/routers/links.ts +++ b/src/server/api/routers/links.ts @@ -10,16 +10,14 @@ export const linksRouter = createTRPCRouter({ .input( z.object({ name: z.string().min(1), - url: z.string().min(1), - type: z.string().min(1) + url: z.string().min(1) }) ) .mutation(async ({ctx, input}) => { return ctx.db.socialLink.create({ data: { name: input.name, - url: input.url, - type: input.type + url: input.url } }) }),