Skip to content

Commit

Permalink
Merge pull request #105 from Boost-Coder/feature/changeScore-#104
Browse files Browse the repository at this point in the history
Fix: 모든 점수들을 문자열에서 number 형태로 변경
  • Loading branch information
koomin1227 authored Jun 8, 2024
2 parents 052b81b + 38accc2 commit 82c2992
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/stat.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ export class StatRepository extends Repository<any> {
const result = await (<Promise<[RankListDto]>>(
queryBuilder.getRawMany()
));
result.forEach(
(result) => (result.rank = parseInt(String(result.rank), 10)),
);
result.forEach((result) => {
result.rank = parseInt(String(result.rank), 10);
result.score = parseFloat(String(result.score));
});

return result;
}
Expand Down

0 comments on commit 82c2992

Please sign in to comment.