@lokalise/background-jobs-common
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -33,3 +33,4 @@ "use strict"; | ||
} | ||
getJobCount() { | ||
async getJobCount() { | ||
await this.startIfNotStarted(); | ||
return this.queue.getJobCountByTypes('active', 'waiting', 'paused', 'delayed', 'prioritized', 'waiting-children'); | ||
@@ -70,5 +71,6 @@ } | ||
} | ||
async startIfNotStarted() { | ||
startIfNotStarted() { | ||
if (!this.isStarted) | ||
await this.start(); | ||
return this.start(); | ||
return Promise.resolve(); | ||
} | ||
@@ -75,0 +77,0 @@ async internalInit() { |
{ | ||
"name": "@lokalise/background-jobs-common", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"files": ["dist", "LICENSE.md", "README.md"], | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68139
1329