Skip to content

Commit

Permalink
fix default option provided by function
Browse files Browse the repository at this point in the history
  • Loading branch information
kanen committed Oct 7, 2019
1 parent 375d455 commit e8fdb57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/microservices/server/server-rmq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {

public async setupChannel(channel: any, callback: Function) {
const noAck =
this.getOptionsProp(this.options, 'noAck') || RQM_DEFAULT_NOACK;
this.getOptionsProp(this.options, 'noAck', RQM_DEFAULT_NOACK);

await channel.assertQueue(this.queue, this.queueOptions);
await channel.prefetch(this.prefetchCount, this.isGlobalPrefetchCount);
Expand Down

0 comments on commit e8fdb57

Please sign in to comment.