From ff3f005b913beb7ecc0bde69d6096438f8d9716d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:56:04 +0700 Subject: [PATCH] fix: return more data --- src/controllers/ProfileOtherController.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/controllers/ProfileOtherController.ts b/src/controllers/ProfileOtherController.ts index ad52c299..f5e1f81e 100644 --- a/src/controllers/ProfileOtherController.ts +++ b/src/controllers/ProfileOtherController.ts @@ -48,7 +48,6 @@ export class ProfileOtherController extends Controller { public async getOther(@Path() profileId: string) { const lists = await this.otherRepository.find({ where: { profileId: profileId }, - select: ["id", "date", "detail"], }); return new HttpSuccess(lists); } @@ -75,7 +74,6 @@ export class ProfileOtherController extends Controller { public async otherHistory(@Path() otherId: string) { const record = await this.otherHistoryRepository.find({ where: { profileOtherId: otherId }, - select: ["id", "date", "detail"], order: { createdAt: "DESC" }, }); return new HttpSuccess(record);