Skip to content

Commit

Permalink
[fix] Properly sync after creating a database
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Apr 7, 2012
1 parent d8fb51c commit 0dc93f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resourceful/engines/couchdb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0dc93f7

Please sign in to comment.