From 8d0c4123a69e247e2cc53f9064668f23fc330fc1 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 25 Feb 2026 04:22:46 +0100 Subject: [PATCH] fix: TypeScript 5.9 type compatibility fixes for admin-console-owned code (#19192) Add explicit `as BufferSource` casts and `Uint8Array` wrapping to satisfy stricter type checking in TypeScript 5.9. Non-functional changes. --- .../organization-user-reset-password.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/app/admin-console/organizations/members/services/organization-user-reset-password/organization-user-reset-password.service.ts b/apps/web/src/app/admin-console/organizations/members/services/organization-user-reset-password/organization-user-reset-password.service.ts index bd3dd7fbb0b..8fd00e507ce 100644 --- a/apps/web/src/app/admin-console/organizations/members/services/organization-user-reset-password/organization-user-reset-password.service.ts +++ b/apps/web/src/app/admin-console/organizations/members/services/organization-user-reset-password/organization-user-reset-password.service.ts @@ -81,7 +81,7 @@ export class OrganizationUserResetPasswordService implements UserKeyRotationKeyR if ( !trustedPublicKeys.some( - (key) => Utils.fromBufferToHex(key) === Utils.fromBufferToHex(publicKey), + (key) => Utils.fromArrayToHex(key) === Utils.fromArrayToHex(publicKey), ) ) { throw new Error("Untrusted public key");