select correct peer in datatable query
This commit is contained in:
parent
78863c40b7
commit
c31a58cf89
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ class TransactionsQuery
|
||||||
.where(@transactions[:debtor_id].eq(@user.id))
|
.where(@transactions[:debtor_id].eq(@user.id))
|
||||||
.project(
|
.project(
|
||||||
@transactions[:amount],
|
@transactions[:amount],
|
||||||
@transactions[:debtor_id].as('peer_id'),
|
@transactions[:creditor_id].as('peer_id'),
|
||||||
@transactions[:created_at].as('time'),
|
@transactions[:created_at].as('time'),
|
||||||
@transactions[:issuer_id],
|
@transactions[:issuer_id],
|
||||||
@transactions[:issuer_type],
|
@transactions[:issuer_type],
|
||||||
|
|
Loading…
Reference in a new issue