From 2511da3898bf2b0b5de9a16774a556be972252b7 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 14 Nov 2024 10:36:16 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=E0=B9=80?= =?UTF-8?q?=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3?= =?UTF-8?q?=E0=B8=B2=E0=B8=8A=20#1154?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileController.ts | 1 + src/middlewares/logs.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index b6a2ed64..810271c9 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -7057,6 +7057,7 @@ export class ProfileController extends Controller { lastName: profile.lastName, citizenId: profile.citizenId, position: profile.position, + isDirector : posMaster?.isDirector, isProbation: profile.isProbation, posLevelName: profile.posLevel == null ? null : profile.posLevel.posLevelName, posLevelRank: profile.posLevel == null ? null : profile.posLevel.posLevelRank, diff --git a/src/middlewares/logs.ts b/src/middlewares/logs.ts index aacfd494..2d0d84ab 100644 --- a/src/middlewares/logs.ts +++ b/src/middlewares/logs.ts @@ -52,6 +52,7 @@ async function logMiddleware(req: Request, res: Response, next: NextFunction) { res.on("finish", async() => { if (!req.url.startsWith("/api/")) return; let system = "organization"; + if (req.url.startsWith("/api/v1/org/keycloak/log/sso")) system = "inout"; if (req.url.startsWith("/api/v1/org/metadata/")) system = "master"; if (req.url.startsWith("/api/v1/org/pos/position/")) system = "master"; if (req.url.startsWith("/api/v1/org/pos/type/")) system = "master";