@seidor-cloud-produtos/orbit-backend-lib 2.0.60 → 2.0.61

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.
@@ -19,6 +19,6 @@ export declare class RabbitMQScaledJobRunner<T = any> {
19
19
  protected parse(raw: {
20
20
  content: Buffer;
21
21
  }): any;
22
- private finishProcess;
22
+ protected finishProcess(): Promise<never>;
23
23
  run(): Promise<void>;
24
24
  }
@@ -44,6 +44,7 @@ class RabbitMQScaledJobRunner {
44
44
  }
45
45
  async finishProcess() {
46
46
  this.logger.info('[RabbitMQScaledJobRunner] Finished process');
47
+ return process.exit(0);
47
48
  }
48
49
  async run() {
49
50
  let getResult = null;
@@ -94,10 +95,10 @@ class RabbitMQScaledJobRunner {
94
95
  try {
95
96
  await this.amqpQueue.close();
96
97
  }
97
- catch {
98
- this.logger.info('[RabbitMQScaledJobRunner] Erro ao fechar conexão');
99
- await this.finishProcess();
98
+ catch (error) {
99
+ this.logger.info('[RabbitMQScaledJobRunner] Erro ao fechar conexão', error);
100
100
  }
101
+ await this.finishProcess();
101
102
  }
102
103
  }
103
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seidor-cloud-produtos/orbit-backend-lib",
3
- "version": "2.0.60",
3
+ "version": "2.0.61",
4
4
  "description": "Internal lib for backend components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",