docs(todo): add TODOs for Prisma client/type sync and desktop TS notes; remove unused vars in companies create route

This commit is contained in:
Esdras Renan 2025-10-09 23:05:11 -03:00
parent b801ebd44f
commit c0228c0dad
2 changed files with 15 additions and 3 deletions

View file

@ -22,15 +22,13 @@ export async function POST(request: Request) {
const body = (await request.json()) as Partial<{
name: string
slug: string
isAvulso: boolean
cnpj: string | null
domain: string | null
phone: string | null
description: string | null
address: string | null
contractedHoursPerMonth: number | string | null
}>
const { name, slug, isAvulso, cnpj, domain, phone, description, address, contractedHoursPerMonth } = body ?? {}
const { name, slug, cnpj, domain, phone, description, address } = body ?? {}
if (!name || !slug) {
return NextResponse.json({ error: "Nome e slug são obrigatórios" }, { status: 400 })
}