mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 13:13:54 +08:00
[offers][fix] grant access to create offer without logging in
This commit is contained in:
@ -2,7 +2,7 @@ import crypto, { randomUUID } from "crypto";
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { Prisma } from "@prisma/client";
|
import { Prisma } from "@prisma/client";
|
||||||
|
|
||||||
import { createProtectedRouter } from "./context";
|
import { createRouter } from "./context";
|
||||||
|
|
||||||
const valuation = z.object({
|
const valuation = z.object({
|
||||||
currency: z.string(),
|
currency: z.string(),
|
||||||
@ -50,7 +50,7 @@ const education = z.object({
|
|||||||
type: z.string().optional(),
|
type: z.string().optional(),
|
||||||
})
|
})
|
||||||
|
|
||||||
export const offersProfileRouter = createProtectedRouter().mutation(
|
export const offersProfileRouter = createRouter().mutation(
|
||||||
'create',
|
'create',
|
||||||
{
|
{
|
||||||
input: z.object({
|
input: z.object({
|
||||||
|
Reference in New Issue
Block a user