From 6d1b0f5379c70fbcbea31f45a915a869400f888c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 21 Mar 2024 13:30:51 +0700 Subject: [PATCH] feat: return more metadata for display --- src/controllers/ProfileNopaidController.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/ProfileNopaidController.ts b/src/controllers/ProfileNopaidController.ts index eda2cc40..a0bd33d3 100644 --- a/src/controllers/ProfileNopaidController.ts +++ b/src/controllers/ProfileNopaidController.ts @@ -47,8 +47,7 @@ export class ProfileNopaidController extends Controller { }) public async getNopaid(@Path() profileId: string) { const lists = await this.nopaidRepository.find({ - where: { profileId: profileId }, - select: ["id", "isActive", "date", "reference", "detail", "refCommandNo", "refCommandDate"], + where: { profileId }, }); return new HttpSuccess(lists); } @@ -81,7 +80,6 @@ export class ProfileNopaidController extends Controller { public async nopaidHistory(@Path() nopaidId: string) { const record = await this.nopaidHistoryRepository.find({ where: { profileNopaidId: nopaidId }, - select: ["id", "isActive", "date", "reference", "detail", "refCommandNo", "refCommandDate"], order: { createdAt: "DESC" }, }); return new HttpSuccess(record);