From 63152ec90e3a27907b187d294c7c9301aecc9836 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Thu, 8 Aug 2024 15:24:35 +0700 Subject: [PATCH] feat(SPG-833): add key refund_type on get index --- .../domain/usecases/managers/index-transaction.manager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/transaction/transaction/domain/usecases/managers/index-transaction.manager.ts b/src/modules/transaction/transaction/domain/usecases/managers/index-transaction.manager.ts index 055bad9..9872b5b 100644 --- a/src/modules/transaction/transaction/domain/usecases/managers/index-transaction.manager.ts +++ b/src/modules/transaction/transaction/domain/usecases/managers/index-transaction.manager.ts @@ -26,6 +26,7 @@ export class IndexTransactionManager extends BaseIndexManager ); Object.assign(item, { + refund_type: activeRefund?.type ?? null, refund_code: activeRefund?.code ?? null, refund_date: activeRefund?.refund_date ?? null, }); @@ -86,6 +87,7 @@ export class IndexTransactionManager extends BaseIndexManager `refunds.code`, `refunds.refund_date`, `refunds.request_date`, + `refunds.type`, ]; }