Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: topology [options] params are not optional #36

@mxriverlynn

Description

@mxriverlynn

if you run rabbot.addQueue("queue.name") or rabbot.addExchange("ex.name") without a second parameter specifying an options object, you get this error:

TypeError: Cannot set property 'name' of undefined

the current workaround is to always provide an options object, even if it's blank:

rabbot.addQueue("queue.name", {});

rabbot.addExchange("ex.name", {});

this should be fixed so the [options] are actually optional, as the [] square brackets in the documentation suggests :)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions