From 7a2c3f6923f6adca99be2e3f1683b98f1e24997c Mon Sep 17 00:00:00 2001 From: Jannik Zinkl Date: Thu, 9 Nov 2023 17:23:01 +0100 Subject: [PATCH] fix: removing the locking for now because it is not stable --- .../src/auftrag.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/integration-xentralProxy-entities/src/auftrag.ts b/pkg/integration-xentralProxy-entities/src/auftrag.ts index ce4eca8cf..60691d90c 100644 --- a/pkg/integration-xentralProxy-entities/src/auftrag.ts +++ b/pkg/integration-xentralProxy-entities/src/auftrag.ts @@ -100,14 +100,14 @@ export class XentralProxyOrderSyncService { "Starting sync of ECI Orders to XentralProxy Aufträge", ); - const cronState = await this.cronState.get(true); + // const cronState = await this.cronState.get(true); try { - if (cronState.currentlyLocked) { - this.logger.info( - `Xentral Auftrag sync for Xentral app ${this.xentralProxyApp.id} - ${this.xentralProxyApp.url} is currently locked. Finishing sync`, - ); - return; - } + // if (cronState.currentlyLocked) { + // this.logger.info( + // `Xentral Auftrag sync for Xentral app ${this.xentralProxyApp.id} - ${this.xentralProxyApp.url} is currently locked. Finishing sync`, + // ); + // return; + // } const orders = await this.db.order.findMany({ where: {