From 62dfa32465aaa2bfca2929bbe3a9f7f4839e4d26 Mon Sep 17 00:00:00 2001 From: shrouti1507 Date: Tue, 30 Jan 2024 17:16:33 +0530 Subject: [PATCH] fix: reviw comments addressed --- src/v0/util/facebookUtils/networkHandler.js | 2 +- src/v0/util/tags.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v0/util/facebookUtils/networkHandler.js b/src/v0/util/facebookUtils/networkHandler.js index 525890925ca..d19a0e6b70b 100644 --- a/src/v0/util/facebookUtils/networkHandler.js +++ b/src/v0/util/facebookUtils/networkHandler.js @@ -114,7 +114,7 @@ const errorDetailsMap = { default: new ErrorDetailsExtractorBuilder() .setStatus(400) .setStat({ - [tags.TAG_NAMES.ERROR_TYPE]: tags.ERROR_TYPES.ACCESS_TOKEN_EXPIRED, + [tags.TAG_NAMES.ERROR_TYPE]: tags.ERROR_TYPES.UNAUTHORIZED, }) .setMessage('Invalid OAuth 2.0 access token') .build(), diff --git a/src/v0/util/tags.js b/src/v0/util/tags.js index 471f77e939a..d8a97506658 100644 --- a/src/v0/util/tags.js +++ b/src/v0/util/tags.js @@ -39,7 +39,7 @@ const ERROR_CATEGORIES = { DATA_VALIDATION: 'dataValidation', NETWORK: 'network', PLATFORM: 'platform', - TRANSFORMATION: 'transformation' + TRANSFORMATION: 'transformation', }; const ERROR_TYPES = { @@ -52,7 +52,7 @@ const ERROR_TYPES = { UNSUPPORTED: 'unsupported', REDIS: 'redis', FILTERED: 'filtered', - ACCESS_TOKEN_EXPIRED: 'accessTokenExpired' + UNAUTHORIZED: 'accessTokenExpired', }; const METADATA = {