Skip to content

Commit

Permalink
fix saleor historic orders in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Jan 2, 2024
1 parent 6cc9f88 commit 39db6f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/worker/src/workflows/saleorOrderSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class SaleorOrderSyncWf implements Workflow {
this.prisma,
);

const zohoContactSyncService = new SaleorOrderSyncService({
const saleorOrderSync = new SaleorOrderSyncService({
logger: this.logger,
saleorClient,
db: this.prisma,
Expand All @@ -55,7 +55,9 @@ export class SaleorOrderSyncWf implements Workflow {
channelSlug: installedSaleorApp.channelSlug || "",
orderPrefix: this.orderPrefix,
});
await zohoContactSyncService.syncToECI();
await saleorOrderSync.syncToECI();
await saleorOrderSync.syncFromECI();

this.logger.info("Finished saleor order sync workflow run");
}
}

1 comment on commit 39db6f2

@vercel
Copy link

@vercel vercel bot commented on 39db6f2 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.