From e6f2be64b4baa41e490b2e3bac9423dcb05f6f9a Mon Sep 17 00:00:00 2001 From: Stuart Long Chay Boon Date: Mon, 10 Oct 2022 21:01:10 +0800 Subject: [PATCH] [offers][fix] grant access to create offer without logging in --- apps/portal/src/server/router/offers-profile-router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/portal/src/server/router/offers-profile-router.ts b/apps/portal/src/server/router/offers-profile-router.ts index 286b6e5a..3434d854 100644 --- a/apps/portal/src/server/router/offers-profile-router.ts +++ b/apps/portal/src/server/router/offers-profile-router.ts @@ -2,7 +2,7 @@ import crypto, { randomUUID } from "crypto"; import { z } from "zod"; import { Prisma } from "@prisma/client"; -import { createProtectedRouter } from "./context"; +import { createRouter } from "./context"; const valuation = z.object({ currency: z.string(), @@ -50,7 +50,7 @@ const education = z.object({ type: z.string().optional(), }) -export const offersProfileRouter = createProtectedRouter().mutation( +export const offersProfileRouter = createRouter().mutation( 'create', { input: z.object({