remove hospital info in user

This commit is contained in:
avicenan
2026-06-03 11:12:39 +09:00
parent c6d471dde0
commit 3844828ef1
2 changed files with 3 additions and 5 deletions

View File

@ -1139,8 +1139,8 @@ export class UserController {
// .where('utr.user_id = :id', { id: param.id }) // .where('utr.user_id = :id', { id: param.id })
// .getMany(); // .getMany();
const repoHospital = OrmHelper.DB.getRepository(HospitalInformation); // const repoHospital = OrmHelper.DB.getRepository(HospitalInformation);
const hospital = await repoHospital.findOne({}); // const hospital = await repoHospital.findOne({});
if (detail != null) { if (detail != null) {
const data = { const data = {
@ -1149,7 +1149,7 @@ export class UserController {
file_signature: detail.signature ? buildFileUrl(detail.signature) : null, file_signature: detail.signature ? buildFileUrl(detail.signature) : null,
profile: detail.profile_picture ?? null, profile: detail.profile_picture ?? null,
profile_picture: detail.profile_picture ? buildFileUrl(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); return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, data);

View File

@ -16,7 +16,6 @@ import {
HrmsEmployee, HrmsEmployee,
HrmsDepartment, HrmsDepartment,
HrmsShift, HrmsShift,
HospitalInformation
} from "entity" } from "entity"
import { ILogObj, Logger } from "tslog" import { ILogObj, Logger } from "tslog"
@ -54,7 +53,6 @@ export class OrmHelper {
HrmsPosition, HrmsPosition,
HrmsShift, HrmsShift,
HrmsEmployee, HrmsEmployee,
HospitalInformation
], ],
subscribers: [], subscribers: [],
migrations: [], migrations: [],