@seidor-cloud-produtos/orbit-backend-lib 2.0.130 → 2.0.132
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.
|
@@ -358,13 +358,14 @@ class AmqpQueue {
|
|
|
358
358
|
*/
|
|
359
359
|
async reconnectionChannels() {
|
|
360
360
|
for (const [queueName, callback] of this.channels) {
|
|
361
|
-
|
|
361
|
+
this.on(queueName, callback);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
/**
|
|
365
365
|
* Publica novamente mensagens que falharam e ficaram em memória.
|
|
366
366
|
*/
|
|
367
367
|
async publishMessagesOfMemory() {
|
|
368
|
+
this.logger.info('Publishing messages in memory...', JSON.stringify(this.messagesInMemory));
|
|
368
369
|
if (this.messagesInMemory.length > 0) {
|
|
369
370
|
while (this.messagesInMemory.length > 0) {
|
|
370
371
|
const data = this.messagesInMemory.shift();
|