Skip to content

Commit

Permalink
remove leftover wmPaymentPointers relation on getAccounts
Browse files Browse the repository at this point in the history
  • Loading branch information
beniaminmunteanu committed Oct 18, 2023
1 parent 519d563 commit e49b8c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/wallet/backend/src/account/service.ts
Original file line number Diff line number Diff line change
@@ -131,13 +131,10 @@ export class AccountService implements IAccountService {
let query = Account.query().where('userId', userId)
if (hasPaymentPointer)
query = query
.withGraphFetched({ paymentPointers: true, wmPaymentPointers: true })
.withGraphFetched({ paymentPointers: true})
.modifyGraph('paymentPointers', (builder) => {
builder.where({ active: true }).orderBy('createdAt', 'ASC')
})
.modifyGraph('wmPaymentPointers', (builder) =>
builder.where({ active: true }).orderBy('createdAt', 'ASC')
)

const accounts = await query

0 comments on commit e49b8c7

Please sign in to comment.