Skip to content

Commit

Permalink
fix(adapter): set default options to findAll
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
Darío Javier Cravero committed Dec 2, 2015
1 parent 9316160 commit 5abe896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter.es6
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const delAttachment = (db, id, att) => find(db, id)

const find = (db, id) => db.get(id);

const findAll = (db, {options}) => db
const findAll = (db, {options}={}) => db
.allDocs({
attachments: true,
include_docs: true,
Expand Down

0 comments on commit 5abe896

Please sign in to comment.