Skip to content

Commit

Permalink
fix: product sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Oct 24, 2023
1 parent 38f83c1 commit 3acebaa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ shopify.ProductImporter = class {
}

async checkSyncStatus() {

const { message: jobs } = await frappe.db.get_list("RQ Job", {filters: {"status": ("in", ("queued", "started"))}});

const jobs = await frappe.db.get_list("RQ Job", {filters: {"status": ("in", ("queued", "started"))}});
this.syncRunning = jobs.find(job => job.job_name == 'shopify.job.sync.all.products') !== undefined;

if (this.syncRunning) {
Expand Down

0 comments on commit 3acebaa

Please sign in to comment.