diff --git a/src/utils/stat.repository.ts b/src/utils/stat.repository.ts index b69de9d..0bb7ad3 100644 --- a/src/utils/stat.repository.ts +++ b/src/utils/stat.repository.ts @@ -35,9 +35,10 @@ export class StatRepository extends Repository { const result = await (>( 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; }