chore(trpc): type-safety cleanups across routers

This commit is contained in:
ephraimduncan
2026-08-15 13:49:02 +00:00
parent 688ef2fdf3
commit e7b66fe069
22 changed files with 1537 additions and 21 deletions
@@ -92,7 +92,7 @@ export const profileRouter = router({
const parsedTeamId = teamId ? Number(teamId) : null;
if (typeof parsedTeamId === 'number') {
if (parsedTeamId !== null) {
if (Number.isNaN(parsedTeamId) || parsedTeamId <= 0) {
throw new AppError(AppErrorCode.INVALID_BODY, {
message: 'Invalid team ID provided',