chore(types): fix tsconfig to exclude desktop from Next TS check; remove unused vars and fix hook deps; clean up remaining lint warnings
This commit is contained in:
parent
6ffd6c6392
commit
6d69fcfa3c
4 changed files with 8 additions and 12 deletions
|
|
@ -37,7 +37,7 @@ export async function GET(request: Request) {
|
|||
role: session.user.role.toUpperCase(),
|
||||
})
|
||||
viewerId = ensuredUser?._id ?? null
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
return NextResponse.json({ error: "Falha ao sincronizar usuário com Convex" }, { status: 500 })
|
||||
}
|
||||
if (!viewerId) return NextResponse.json({ error: "Usuário não encontrado no Convex" }, { status: 403 })
|
||||
|
|
@ -75,7 +75,7 @@ export async function GET(request: Request) {
|
|||
"Cache-Control": "no-store",
|
||||
},
|
||||
})
|
||||
} catch (_error) {
|
||||
} catch {
|
||||
return NextResponse.json({ error: "Falha ao gerar CSV de horas por cliente" }, { status: 500 })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue