Permalink
Browse files

[fix] Properly `sync` after creating a database

  • Loading branch information...
1 parent d8fb51c commit 0dc93f76d5c08a7809c281255940b77ca5e601ee @mmalecki mmalecki committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/resourceful/engines/couchdb/index.js
@@ -181,7 +181,7 @@ Couchdb.prototype.sync = function (factory, callback) {
if (e) {
if (e.reason === 'no_db_file') {
that.connection.create(function () {
- that.sync(callback);
+ that.sync(factory, callback);
});
}
else {

0 comments on commit 0dc93f7

Please sign in to comment.