Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
fix(converter): fix orger by in find closest
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkamyshev committed Mar 2, 2019
1 parent 42297be commit 641d033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/src/money/domain/ExchangeRateRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ExchangeRateRepo {
const findAfter = () =>
this.createFromToQueryBuilder('rate')
.andWhere('rate.collectAt >= :forWhen')
.orderBy('rate.collectAt', 'DESC')
.orderBy('rate.collectAt', 'ASC')
.setParameters({ from, to, forWhen })
.getOne()
.then(this.toOption)
Expand Down

0 comments on commit 641d033

Please sign in to comment.