Fix TypeScript and lint errors

- Add missing reqHeaders/resHeaders to webauthn test context
- Fix Session.id type from number to string in test
- Remove unnecessary Number() conversion in countOwners

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
RevIQ
2026-01-09 17:01:22 +08:00
parent 2655c57b9e
commit 3eb44adf05
2 changed files with 4 additions and 2 deletions

View File

@@ -120,5 +120,5 @@ export async function countOwners(
.where("role", "=", "owner")
.executeTakeFirstOrThrow();
return Number(result.count);
return result.count;
}