Skip to content

Commit

Permalink
fix: removing the locking for now because it is not stable
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Nov 9, 2023
1 parent b7cbb08 commit 7a2c3f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/integration-xentralProxy-entities/src/auftrag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7a2c3f6

Please sign in to comment.