Permalink
Browse files

fixed bug in views

  • Loading branch information...
dgreisen committed Nov 9, 2011
1 parent a9a36b3 commit b39522afe490f1be73dd00b1d13418a04613dafc
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/db_factory.js
View
@@ -7,8 +7,8 @@ var child_constructor = factory.child_constructor;
// ** Methods **
var proto_view = proto_helper(['get', 'post']);
proto_view.call = function(query, callback) {
- if (!callback) return couchdb._request('', this._path, null, query)
- return couchdb._request({query:query}, this._path, null, callback)
+ if (!callback) return this._request('', null, query)
+ return this._request({query:query}, null, callback)
}
var proto_show = proto_helper(['get', 'post'], 'get');
var proto_list = proto_helper(['get', 'post'], 'get');

0 comments on commit b39522a

Please sign in to comment.