select correct peer in datatable query

This commit is contained in:
Ilion Beyst 2015-09-10 22:15:37 +02:00
parent 78863c40b7
commit c31a58cf89

View file

@ -64,7 +64,7 @@ class TransactionsQuery
.where(@transactions[:debtor_id].eq(@user.id))
.project(
@transactions[:amount],
@transactions[:debtor_id].as('peer_id'),
@transactions[:creditor_id].as('peer_id'),
@transactions[:created_at].as('time'),
@transactions[:issuer_id],
@transactions[:issuer_type],