feat: fix update card status webhook

This commit is contained in:
Abdalhamid Alhamad
2025-07-31 14:42:06 +03:00
parent f9776e60cf
commit 5e0a4e6bd1

View File

@ -55,7 +55,7 @@ export class CardService {
}
async updateCardStatus(body: AccountCardStatusChangedWebhookRequest) {
const card = await this.getCardByReferenceNumber(body.cardId);
const card = await this.getCardByAccountNumber(body.cardId);
const { description, status } = CardStatusMapper[body.newStatus] || CardStatusMapper['99'];
return this.cardRepository.updateCardStatus(card.id, status, description);