Commit 34c31ee8 authored by Tristan Cavelier's avatar Tristan Cavelier

replicatestorage name error -> fixed

parent c830ca31
...@@ -779,7 +779,7 @@ ...@@ -779,7 +779,7 @@
* @return {Promise} The promise * @return {Promise} The promise
*/ */
that.newJob = function (method, storage_spec, doc, option) { that.newJob = function (method, storage_spec, doc, option) {
var p = new Promise(), solver = p.solver(); var p = new Promise(), solver = p.defer();
that.addJob( that.addJob(
method, method,
storage_spec, storage_spec,
...@@ -819,12 +819,14 @@ ...@@ -819,12 +819,14 @@
* @param {Command} command The JIO command * @param {Command} command The JIO command
*/ */
that.post = function (command) { that.post = function (command) {
that.sendToAll('post', command.cloneDoc(), command.cloneOption()). that.sendToAllAndGetFirstResolved(
done(that.success). 'post',
fail(function (err) { command.cloneDoc(),
err.message = "Unable to post"; command.cloneOption()
that.error(err); ).done(that.success).fail(function (err) {
}); err.message = "Unable to post";
that.error(err);
});
that.end(); that.end();
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment