@@ -599,11 +599,23 @@ export class WAStartupService {
599
599
if ( Array . isArray ( rabbitmqLocal ) && rabbitmqLocal . includes ( we ) ) {
600
600
const exchangeName = 'evolution_exchange' ;
601
601
602
- amqp . assertExchange ( exchangeName , 'topic' , { durable : false } ) ;
602
+ amqp . assertExchange ( exchangeName , 'topic' , {
603
+ durable : true ,
604
+ 'auto-delete' : false ,
605
+ arguments : {
606
+ 'x-queue-type' : 'quorum' ,
607
+ } ,
608
+ } ) ;
603
609
604
610
const queueName = `${ this . instanceName } .${ event } ` ;
605
611
606
- amqp . assertQueue ( queueName , { durable : false } ) ;
612
+ amqp . assertQueue ( queueName , {
613
+ durable : true ,
614
+ 'auto-delete' : false ,
615
+ arguments : {
616
+ 'x-queue-type' : 'quorum' ,
617
+ } ,
618
+ } ) ;
607
619
608
620
amqp . bindQueue ( queueName , exchangeName , event ) ;
609
621
@@ -666,6 +678,7 @@ export class WAStartupService {
666
678
instance : this . instance . name ,
667
679
data,
668
680
destination : this . localWebhook . url ,
681
+ sender : this . wuid ,
669
682
server_url : serverUrl ,
670
683
apikey : ( expose && instanceApikey ) || null ,
671
684
} ;
@@ -685,6 +698,7 @@ export class WAStartupService {
685
698
instance : this . instance . name ,
686
699
data,
687
700
destination : this . localWebhook . url ,
701
+ sender : this . wuid ,
688
702
server_url : serverUrl ,
689
703
} ;
690
704
@@ -734,6 +748,7 @@ export class WAStartupService {
734
748
instance : this . instance . name ,
735
749
data,
736
750
destination : localUrl ,
751
+ sender : this . wuid ,
737
752
server_url : serverUrl ,
738
753
} ;
739
754
@@ -752,6 +767,7 @@ export class WAStartupService {
752
767
instance : this . instance . name ,
753
768
data,
754
769
destination : localUrl ,
770
+ sender : this . wuid ,
755
771
server_url : serverUrl ,
756
772
} ;
757
773
0 commit comments