Skip to content

Commit

Permalink
💡 comment: Console.error 주석 처리#12
Browse files Browse the repository at this point in the history
Github Actions에서 warning으로 처리되어 임시 주석처리
  • Loading branch information
uuuo3o committed Nov 6, 2024
1 parent 7736420 commit 3c1ffcb
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions BE/src/stocks/topfive/topfive.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export class TopFiveService {
}

private async requestApi(params: StockRankigRequestDto) {
// eslint-disable-next-line no-useless-catch
try {
const token = await this.getAccessToken();

Expand Down Expand Up @@ -120,18 +121,19 @@ export class TopFiveService {
);
return response.data;
} catch (error) {
console.error('API Error Details:', {
status: error.response?.status,
statusText: error.response?.statusText,
data: error.response?.data,
headers: error.response?.config?.headers, // 실제 요청 헤더
message: error.message,
});
// console.error('API Error Details:', {
// status: error.response?.status,
// statusText: error.response?.statusText,
// data: error.response?.data,
// headers: error.response?.config?.headers, // 실제 요청 헤더
// message: error.message,
// });
throw error;
}
}

async getMarketRanking(marketType: MarketType) {
// eslint-disable-next-line no-useless-catch
try {
const params = new StockRankigRequestDto();
params.fid_cond_mrkt_div_code = 'J';
Expand Down Expand Up @@ -169,13 +171,13 @@ export class TopFiveService {

return response;
} catch (error) {
console.error('API Error Details:', {
status: error.response?.status,
statusText: error.response?.statusText,
data: error.response?.data,
headers: error.response?.config?.headers, // 실제 요청 헤더
message: error.message,
});
// console.error('API Error Details:', {
// status: error.response?.status,
// statusText: error.response?.statusText,
// data: error.response?.data,
// headers: error.response?.config?.headers, // 실제 요청 헤더
// message: error.message,
// });
throw error;
}
}
Expand Down

0 comments on commit 3c1ffcb

Please sign in to comment.