From 514232057f98083ac0c5667f30573ed2c4e82b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qu=E1=BB=91c=20Ch=C6=B0=C6=A1ng?= Date: Wed, 26 Mar 2025 07:48:32 +0700 Subject: [PATCH 1/2] fix: correct property names for teacher object and add debug logging for teacher name --- src/domains/withdrawals/withdrawals.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/domains/withdrawals/withdrawals.service.ts b/src/domains/withdrawals/withdrawals.service.ts index 617f8c5..3646ee0 100644 --- a/src/domains/withdrawals/withdrawals.service.ts +++ b/src/domains/withdrawals/withdrawals.service.ts @@ -124,7 +124,9 @@ export class WithdrawalsService { dto.status === 'approved' ? '[BrainBox] Withdrawal Request Approved' : '[BrainBox] Withdrawal Request Rejected'; - const teacherName = teacher.first_name + ' ' + teacher.last_name; + const teacherName = teacher.firstName + ' ' + teacher.lastName; + + this.logger.debug('Teacher Name', teacherName); const amount = new Intl.NumberFormat('vi-VN', { style: 'currency', currency: 'VND', From 4e04f35f90df7435263d9360c16ab834cd887d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Qu=E1=BB=91c=20Ch=C6=B0=C6=A1ng?= Date: Wed, 26 Mar 2025 08:55:10 +0700 Subject: [PATCH 2/2] update: bump version to 1.8.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a2da845..a4cb5e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "brainbox-backend", - "version": "1.8.0", + "version": "1.8.1", "description": "Backend for BrainBox", "author": "lzaycoe (Lazy Code)", "private": true,