From 9e636ff80c267cc826deb686549526e1fbbe55f9 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:24:45 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B8=A5=E0=B8=9A=20isActive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileOtherController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileOtherController.ts b/src/controllers/ProfileOtherController.ts index 2ac69301..ad52c299 100644 --- a/src/controllers/ProfileOtherController.ts +++ b/src/controllers/ProfileOtherController.ts @@ -48,7 +48,7 @@ export class ProfileOtherController extends Controller { public async getOther(@Path() profileId: string) { const lists = await this.otherRepository.find({ where: { profileId: profileId }, - select: ["id", "isActive", "date", "detail"], + select: ["id", "date", "detail"], }); return new HttpSuccess(lists); } @@ -75,7 +75,7 @@ export class ProfileOtherController extends Controller { public async otherHistory(@Path() otherId: string) { const record = await this.otherHistoryRepository.find({ where: { profileOtherId: otherId }, - select: ["id", "isActive", "date", "detail"], + select: ["id", "date", "detail"], order: { createdAt: "DESC" }, }); return new HttpSuccess(record);