Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Sep 5, 2024
1 parent ffcca91 commit a3ba867
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export const makeTransactionRepository = (dataSource: RepositoryDataSource): Tra

return this.createQueryBuilder()
.select(['type_group AS "typeGroup"', "type"])
.addSelect("TRUNC(COALESCE(AVG(fee), 0)::numeri)c", "avg")
.addSelect("TRUNC(COALESCE(MIN(fee), 0)::numeri)c", "min")
.addSelect("TRUNC(COALESCE(MAX(fee), 0)::numeri)c", "max")
.addSelect("TRUNC(COALESCE(SUM(fee), 0)::numeri)c", "sum")
.addSelect("TRUNC(COALESCE(AVG(fee), 0)::numeric", "avg")
.addSelect("TRUNC(COALESCE(MIN(fee), 0)::numeric", "min")
.addSelect("TRUNC(COALESCE(MAX(fee), 0)::numeric", "max")
.addSelect("TRUNC(COALESCE(SUM(fee), 0)::numeric", "sum")
.where("timestamp > :age AND fee >= :minFee", { age, minFee })
.groupBy("type_group")
.addGroupBy("type")
Expand Down

0 comments on commit a3ba867

Please sign in to comment.