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";