From 3844828ef10ba61796cde6fb9a31714a6db0237e Mon Sep 17 00:00:00 2001 From: avicenan Date: Wed, 3 Jun 2026 11:12:39 +0900 Subject: [PATCH] remove hospital info in user --- src/controllers/user.ts | 6 +++--- src/helpers/orm.ts | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/controllers/user.ts b/src/controllers/user.ts index 9ce350d..ab1d4b7 100644 --- a/src/controllers/user.ts +++ b/src/controllers/user.ts @@ -1139,8 +1139,8 @@ export class UserController { // .where('utr.user_id = :id', { id: param.id }) // .getMany(); - const repoHospital = OrmHelper.DB.getRepository(HospitalInformation); - const hospital = await repoHospital.findOne({}); + // const repoHospital = OrmHelper.DB.getRepository(HospitalInformation); + // const hospital = await repoHospital.findOne({}); if (detail != null) { const data = { @@ -1149,7 +1149,7 @@ export class UserController { file_signature: detail.signature ? buildFileUrl(detail.signature) : null, profile: detail.profile_picture ?? null, profile_picture: detail.profile_picture ? buildFileUrl(detail.profile_picture) : null, - hospital: hospital, + // hospital: hospital, }; return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, data); diff --git a/src/helpers/orm.ts b/src/helpers/orm.ts index d59e87b..306fb47 100644 --- a/src/helpers/orm.ts +++ b/src/helpers/orm.ts @@ -16,7 +16,6 @@ import { HrmsEmployee, HrmsDepartment, HrmsShift, - HospitalInformation } from "entity" import { ILogObj, Logger } from "tslog" @@ -54,7 +53,6 @@ export class OrmHelper { HrmsPosition, HrmsShift, HrmsEmployee, - HospitalInformation ], subscribers: [], migrations: [],