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:
Esdras Renan 2025-10-09 22:52:02 -03:00
parent 6ffd6c6392
commit 6d69fcfa3c
4 changed files with 8 additions and 12 deletions

View file

@ -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 })
}
}