fix(api): resolve 2 TypeScript compile errors

- Use bracket notation for process.env['BCRYPT_ROUNDS'] index signature access
- Remove redundant route? property from AuthenticatedRequest interface
  that conflicted with Express Request's required route property

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-11 01:42:23 +07:00
parent 25b22ea9bd
commit 40832a9d12
2 changed files with 1 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ interface HashedPasswordProps {
export class HashedPassword extends ValueObject<HashedPasswordProps> {
private static readonly SALT_ROUNDS = parseInt(
process.env.BCRYPT_ROUNDS ?? '12',
process.env['BCRYPT_ROUNDS'] ?? '12',
10,
);
private static readonly MIN_LENGTH = 8;