Skip to content

Commit

Permalink
fix: @hoodie/account-server needs pouchdb-mapreduce
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswestnz committed Oct 13, 2016
1 parent 85156db commit a779b81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -31,6 +31,7 @@
"pouchdb-adapter-leveldb": "^6.0.4",
"pouchdb-adapter-memory": "^6.0.4",
"pouchdb-core": "^6.0.4",
"pouchdb-mapreduce": "^6.0.6",
"rc": "^1.1.6",
"semver": "^5.1.0",
"yargs": "^6.0.0"
Expand Down
3 changes: 3 additions & 0 deletions server/index.js
Expand Up @@ -20,6 +20,9 @@ function register (server, options, next) {
options.db = {}
}

// mapreduce is required for `db.query()`
PouchDB.plugin(require('pouchdb-mapreduce'))

if (!options.db.url) {
if (options.inMemory) {
PouchDB.plugin(require('pouchdb-adapter-memory'))
Expand Down

0 comments on commit a779b81

Please sign in to comment.