Skip to content

Commit

Permalink
fix: forward code param
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed May 27, 2024
1 parent 4f451b2 commit 608d0f8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nodejs/src/services/APIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class APIService {
return config;
},
(error) => {
logger.error(error);
logger.error(error);
return Promise.reject(error)
}
);
Expand Down Expand Up @@ -95,7 +95,8 @@ export default class APIService {
private convertAxiosErrorToHMS(error: AxiosError) {
logger.error(error);
return ErrorFactory.MakeError(
error.response?.status,
// @ts-ignore
error.response?.code || error.response?.status,
error.response?.statusText,
// @ts-ignore
error.response?.data?.message
Expand Down

0 comments on commit 608d0f8

Please sign in to comment.