Skip to content

Commit

Permalink
fix: reviw comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 committed Jan 30, 2024
1 parent ed7f695 commit 62dfa32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/v0/util/facebookUtils/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions src/v0/util/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ERROR_CATEGORIES = {
DATA_VALIDATION: 'dataValidation',
NETWORK: 'network',
PLATFORM: 'platform',
TRANSFORMATION: 'transformation'
TRANSFORMATION: 'transformation',
};

const ERROR_TYPES = {
Expand All @@ -52,7 +52,7 @@ const ERROR_TYPES = {
UNSUPPORTED: 'unsupported',
REDIS: 'redis',
FILTERED: 'filtered',
ACCESS_TOKEN_EXPIRED: 'accessTokenExpired'
UNAUTHORIZED: 'accessTokenExpired',
};

const METADATA = {
Expand Down

0 comments on commit 62dfa32

Please sign in to comment.