Skip to content

Commit

Permalink
fix: fixing catch line
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Jul 13, 2023
1 parent 800fae5 commit d43f758
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/src/ches/services/ches.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d43f758

Please sign in to comment.