From d43f758e2b074dab82f1728a3bc22e5707569c8a Mon Sep 17 00:00:00 2001 From: Paulo Gomes da Cruz Junior Date: Thu, 13 Jul 2023 10:48:20 -0700 Subject: [PATCH] fix: fixing catch line --- backend/src/ches/services/ches.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/ches/services/ches.service.ts b/backend/src/ches/services/ches.service.ts index be3e2843..d923e0c7 100644 --- a/backend/src/ches/services/ches.service.ts +++ b/backend/src/ches/services/ches.service.ts @@ -20,9 +20,8 @@ export class ChesService { data: 'grant_type=client_credentials', }) .then((res) => res.data) - .then((token) => token?.access_token ?? null) + .then((token) => token?.access_token) .catch((e) => { - this.logger.log(e); throw new HttpException( { message: 'Failed to get email auth token from API: ' + e }, HttpStatus.INTERNAL_SERVER_ERROR,