Skip to content

Commit

Permalink
fix: check for card id
Browse files Browse the repository at this point in the history
  • Loading branch information
dragosp1011 committed Oct 25, 2024
1 parent a71d844 commit 12eb50f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/wallet/backend/src/gatehub/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ export class GateHubService {
}

const account = await Account.query().findOne({ userId, assetCode: 'EUR' })
if (!account) {
this.logger.error(`No account found for user ${userId} on fund account`)
if (!account?.cardId) {
this.logger.error(
`No account with card found for user ${userId} on kyc verified processing`
)
return
}

Expand Down

0 comments on commit 12eb50f

Please sign in to comment.