From 1cc95555469ed522ac8fb01eee2c61e9e58d4568 Mon Sep 17 00:00:00 2001 From: avicenan Date: Mon, 8 Jun 2026 15:59:26 +0900 Subject: [PATCH] fix login --- src/controllers/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/auth.ts b/src/controllers/auth.ts index df70abc..fcce992 100644 --- a/src/controllers/auth.ts +++ b/src/controllers/auth.ts @@ -121,7 +121,8 @@ export class AuthController { WHERE utr.user_id = $1 AND r.deleted_at IS NULL AND utr.deleted_at IS NULL` const rooms = await OrmHelper.DB.query(roomQuery, [user.id]) - const facilityQuery = `SELECT f.id, f.facility_id, .f.name, f.address, f.phone, f.code + const facilityQuery = ` + SELECT f.id, f.facility_id, f.name, f.address, f.phone, f.code FROM hospital_information f LIMIT 1` const facilities = await OrmHelper.DB.query(facilityQuery)