File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,7 +234,8 @@ export class amqpwrapper {
234234 q . queue = "" ;
235235 }
236236 q . callback = callback ;
237- q . QueueOptions = new Object ( ( QueueOptions != null ? QueueOptions : this . AssertQueueOptions ) ) ;
237+ // q.QueueOptions = new Object((QueueOptions != null ? QueueOptions : this.AssertQueueOptions));
238+ q . QueueOptions = Object . assign ( { } , ( QueueOptions != null ? QueueOptions : this . AssertQueueOptions ) ) ;
238239 if ( Util . IsNullEmpty ( queue ) ) queue = "" ;
239240 if ( queue . startsWith ( "amq." ) ) queue = "" ;
240241 if ( Util . IsNullEmpty ( queue ) ) q . QueueOptions . autoDelete = true ;
@@ -266,7 +267,8 @@ export class amqpwrapper {
266267 if ( ! Util . IsNullEmpty ( q . queue ) ) {
267268 delete this . queues [ q . queue ] ;
268269 }
269- q . ExchangeOptions = new Object ( ( ExchangeOptions != null ? ExchangeOptions : this . AssertExchangeOptions ) ) ;
270+ // q.ExchangeOptions = new Object((ExchangeOptions != null ? ExchangeOptions : this.AssertExchangeOptions));
271+ q . ExchangeOptions = Object . assign ( { } , ( ExchangeOptions != null ? ExchangeOptions : this . AssertExchangeOptions ) ) ;
270272 q . exchange = exchange ; q . algorithm = algorithm ; q . routingkey = routingkey ; q . callback = callback ;
271273 this . _ok = await this . channel . assertExchange ( q . exchange , q . algorithm , q . ExchangeOptions ) ;
272274 var AssertQueueOptions = null ;
You can’t perform that action at this time.
0 commit comments