mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2026-03-10 18:51:45 +00:00
feat: add vpan to card entity
This commit is contained in:
@ -20,7 +20,7 @@ export class TransactionService {
|
||||
|
||||
@Transactional()
|
||||
async createCardTransaction(body: CardTransactionWebhookRequest) {
|
||||
const card = await this.cardService.getCardByAccountNumber(body.cardId);
|
||||
const card = await this.cardService.getCardByVpan(body.cardId);
|
||||
const existingTransaction = await this.findExistingTransaction(body.transactionId, card.account.accountReference);
|
||||
|
||||
if (existingTransaction) {
|
||||
|
||||
Reference in New Issue
Block a user