Skip to content
Browse files

Fix stupid typo and use filter only when pushing updates

  • Loading branch information...
1 parent ad8a54f commit a8302611d34af2f0d039419891c00bf15b8c9ecc @ckeen committed with Christian Kellermann Oct 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 _attachments/script/hb.js
View
4 _attachments/script/hb.js
@@ -432,8 +432,8 @@ $.couch.app(function(app) {
{success: function(json) {
json.hosts.map(
function(h){ var request = { "source" : h, "target" : dbname }
- $.ajax( { type: "POST", url: "/_replicate", data: JSON.stringify({ source : h, target : dbname, continuous: true, filter: design+"/copy_data" }), contentType: "application/json"},null, function(c){} );
- $.ajax( { type: "POST", url: "/_replicate", data: JSON.stringify({ source : dbname, target : h, continous : true, filter: design+"/copy_data" }), contentType: "application/json"},null, function(c){} );
+ $.ajax( { type: "POST", url: "/_replicate", data: JSON.stringify({ source : h, target : dbname, continuous: true }), contentType: "application/json"},null, function(c){} );
+ $.ajax( { type: "POST", url: "/_replicate", data: JSON.stringify({ source : dbname, target : h, continuous : true, filter: design+"/copy_data" }), contentType: "application/json"},null, function(c){} );
})}});
});

0 comments on commit a830261

Please sign in to comment.
Something went wrong with that request. Please try again.