Skip to content

Commit

Permalink
Fix bug in delete-all-forms action
Browse files Browse the repository at this point in the history
PouchDB modularisation had removed db.query() function.  This commit re-adds it.
  • Loading branch information
alxndrsn committed Oct 13, 2017
1 parent fe3c475 commit 7fe67cc
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 9 deletions.
85 changes: 77 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.6.4",
"version": "1.6.5",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -29,6 +29,7 @@
"mkdirp": "^0.5.1",
"pouchdb-adapter-http": "^6.3.4",
"pouchdb-core": "^6.3.4",
"pouchdb-mapreduce": "^6.3.4",
"readline-sync": "^1.4.7",
"redact-basic-auth": "^0.1.1",
"request-promise-native": "^1.0.4",
Expand Down
1 change: 1 addition & 0 deletions src/lib/db.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const PouchDB = require('pouchdb-core');
PouchDB.plugin(require('pouchdb-adapter-http'));
PouchDB.plugin(require('pouchdb-mapreduce'));

module.exports = url => new PouchDB(url, { ajax: { timeout: 60000 } });

0 comments on commit 7fe67cc

Please sign in to comment.