From 14d515d60d8fad46ff30cc5e0494a6db42721427 Mon Sep 17 00:00:00 2001 From: nael Date: Sat, 27 Jul 2024 02:36:25 +0200 Subject: [PATCH] :bug: Fix typo --- packages/api/src/@core/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/@core/auth/auth.service.ts b/packages/api/src/@core/auth/auth.service.ts index cbdfadb26..8c7722446 100644 --- a/packages/api/src/@core/auth/auth.service.ts +++ b/packages/api/src/@core/auth/auth.service.ts @@ -310,7 +310,7 @@ export class AuthService { if (!saved_api_key) { throw new ReferenceError('Api Key undefined'); } - if (String(decoded.projectId) !== String(saved_api_key.id_project)) { + if (String(decoded.project_id) !== String(saved_api_key.id_project)) { throw new ReferenceError( 'Failed to validate API key: projectId mismatch.', );