nestjs-power-queues 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ var _QueueService = class _QueueService extends import_power_queues.PowerQueues
|
|
|
52
52
|
return process.env.QUEUE_NAME || String(process.argv[3]);
|
|
53
53
|
}
|
|
54
54
|
async init() {
|
|
55
|
-
if (await this.
|
|
55
|
+
if (await this.checkConnection()) {
|
|
56
56
|
await this.loadScripts(this.runOnInit);
|
|
57
57
|
if (this.runOnInit) {
|
|
58
58
|
await this.runQueue(this.queueName());
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var _QueueService = class _QueueService extends PowerQueues {
|
|
|
26
26
|
return process.env.QUEUE_NAME || String(process.argv[3]);
|
|
27
27
|
}
|
|
28
28
|
async init() {
|
|
29
|
-
if (await this.
|
|
29
|
+
if (await this.checkConnection()) {
|
|
30
30
|
await this.loadScripts(this.runOnInit);
|
|
31
31
|
if (this.runOnInit) {
|
|
32
32
|
await this.runQueue(this.queueName());
|