fixed error
This commit is contained in:
parent
44793fbfbb
commit
b7c80ea6d4
2 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue