From b7c80ea6d4a4f94ce48c34ac42e2f1dd7c3d4fac Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 21 May 2026 14:03:30 +0700 Subject: [PATCH] fixed error --- src/controllers/ScriptProfileOrgController.ts | 2 +- src/services/KeycloakAttributeService.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ScriptProfileOrgController.ts b/src/controllers/ScriptProfileOrgController.ts index 4881249e..0494be98 100644 --- a/src/controllers/ScriptProfileOrgController.ts +++ b/src/controllers/ScriptProfileOrgController.ts @@ -49,7 +49,7 @@ export class ScriptProfileOrgController extends Controller { * @summary Update org structure for profiles updated within a certain time window and sync to Keycloak */ @Post("update-org") - public async cronjobUpdateOrg(@Request() request: RequestWithUser) { + public async cronjobUpdateOrg(@Request() _request: RequestWithUser) { // Idempotency check - prevent concurrent runs if (this.isRunning) { console.log("cronjobUpdateOrg: Job already running, skipping this execution"); diff --git a/src/services/KeycloakAttributeService.ts b/src/services/KeycloakAttributeService.ts index 5206183b..7bfe88ed 100644 --- a/src/services/KeycloakAttributeService.ts +++ b/src/services/KeycloakAttributeService.ts @@ -543,7 +543,7 @@ export class KeycloakAttributeService { .createQueryBuilder("p") .where("p.keycloak IS NOT NULL") .andWhere("p.keycloak != :empty", { empty: "" }) - .andWhere({ "p.isDeleted": false }) + .andWhere("p.isDelete = :isDelete", { isDelete: false }) .andWhere("p.lastUpdatedAt BETWEEN :start AND :end", { start: startDate, end: endDate,