Skip to content

Commit

Permalink
✨ feat: 상/하위 종목 5개만 반환할 수 있도록 수정#12
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuo3o committed Nov 6, 2024
1 parent ba8e2d6 commit 7736420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BE/src/stocks/topfive/topfive.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class TopFiveService {
}

private formatStockData(stocks: StockApiOutputData[]) {
return stocks.map((stock) => {
return stocks.slice(0, 5).map((stock) => {
const stockData = new StockRankingDataDto();
stockData.hts_kor_isnm = stock.hts_kor_isnm;
stockData.stck_prpr = stock.stck_prpr;
Expand Down

0 comments on commit 7736420

Please sign in to comment.