diff --git a/packages/wallet/backend/src/gatehub/service.ts b/packages/wallet/backend/src/gatehub/service.ts index 3dc93c680..f79788e46 100644 --- a/packages/wallet/backend/src/gatehub/service.ts +++ b/packages/wallet/backend/src/gatehub/service.ts @@ -203,10 +203,8 @@ export class GateHubService { firstName: string, lastName: string ): Promise { - const { account } = await this.createDefaultAccountAndWAForManagedUser( - userId, - true - ) + const { account, walletAddress } = + await this.createDefaultAccountAndWAForManagedUser(userId, true) const requestBody: ICreateCustomerRequest = { walletAddress: account.gateHubWalletId, @@ -232,7 +230,8 @@ export class GateHubService { const cardId = customer.customers.accounts![0].cards![0].id await User.query().findById(userId).patch({ - customerId + customerId, + cardWalletAddress: walletAddress }) await Account.query().findById(account.id).patch({