Files
TREK/server/scripts/eslint-baseline.json
T
Maurice 8187a423e2 fix(admin): an invite for a trip that does not exist answers 404 instead of an empty 201
createInvite returned { error: 'Trip not found', status: 404 } and the admin controller never looked at it: POST /api/admin/invites with an unknown trip_id answered 201 with an empty body and wrote an admin.invite_create audit row for resource 'undefined'. The service throws the DomainError now, so the route answers 404 { error: 'Trip not found' } and writes neither the invite nor the audit row.
2026-10-10 20:16:14 +02:00

31 lines
907 B
JSON

{
"src": {
"@typescript-eslint/no-explicit-any": 90,
"@typescript-eslint/no-non-null-assertion": 265,
"@typescript-eslint/no-require-imports": 18,
"@typescript-eslint/no-unsafe-function-type": 1,
"@typescript-eslint/no-unused-vars": 36,
"no-await-in-loop": 563,
"no-console": 236,
"no-empty": 6
},
"suppressed": {
"@typescript-eslint/no-explicit-any": 128,
"@typescript-eslint/no-require-imports": 20,
"no-control-regex": 7,
"no-misleading-character-class": 1
},
"tests": {
"@typescript-eslint/no-explicit-any": 1567,
"@typescript-eslint/no-non-null-assertion": 1757,
"@typescript-eslint/no-require-imports": 25,
"@typescript-eslint/no-unsafe-function-type": 7,
"@typescript-eslint/no-unused-vars": 96,
"no-await-in-loop": 459,
"no-console": 18,
"no-empty": 2,
"no-useless-escape": 1,
"prefer-const": 3
}
}