Skip to content

Commit

Permalink
Typo in example
Browse files Browse the repository at this point in the history
Schema should be passed as the `schema` property of options, not as argument.
  • Loading branch information
jucrouzet committed Feb 16, 2016
1 parent 83c7efc commit 31ae9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Setup a queue consumer w/ options and middleware. Queues will be asserted and co
const coworkers = require('coworkers')

// using optional schema
const app = coworkers(schema)
const app = coworkers({ schema: schema })
// add required error handler
app.on('error', function (err) {
console.error(err.stack)
Expand Down

0 comments on commit 31ae9bc

Please sign in to comment.