Merge branch 'dev' into jajaja
# Conflicts: # package.json # pnpm-lock.yaml
This commit is contained in:
@@ -28,8 +28,8 @@ export async function GET(request: Request, { params }: { params: Promise<{ team
|
||||
|
||||
export async function POST(request: Request, { params }: { params: Promise<{ teamId: string }> }) {
|
||||
const schema = z.object({
|
||||
name: z.string().max(50),
|
||||
accessCode: z.string().max(50),
|
||||
name: z.string().max(50).optional(),
|
||||
accessCode: z.string().max(50).optional(),
|
||||
});
|
||||
|
||||
const { auth, body, error } = await parseRequest(request, schema);
|
||||
|
||||
@@ -33,7 +33,7 @@ export async function POST(
|
||||
const schema = z.object({
|
||||
name: z.string(),
|
||||
domain: z.string(),
|
||||
shareId: z.string().regex(SHARE_ID_REGEX).nullable(),
|
||||
shareId: z.string().regex(SHARE_ID_REGEX).nullable().optional(),
|
||||
});
|
||||
|
||||
const { auth, body, error } = await parseRequest(request, schema);
|
||||
|
||||
Reference in New Issue
Block a user