Skip to content

Commit

Permalink
specify ignore errors in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Nov 14, 2014
1 parent 947cc23 commit 0346175
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ Please note that this must be a *collection*. Also, you will want to run the fol
afterwards to ensure the database has the proper indexes:

```js
function ignoreErrors() {}

agenda._db.ensureIndex("nextRunAt", ignoreErrors)
.ensureIndex("lockedAt", ignoreErrors)
.ensureIndex("name", ignoreErrors)
.ensureIndex("priority", ignoreErrors);

function ignoreErrors
```

You can also specify it during instantiation.
Expand Down

0 comments on commit 0346175

Please sign in to comment.