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

replicatestorage name error -> fixed

parent c830ca31
......@@ -779,7 +779,7 @@
* @return {Promise} The promise
*/
that.newJob = function (method, storage_spec, doc, option) {
var p = new Promise(), solver = p.solver();
var p = new Promise(), solver = p.defer();
that.addJob(
method,
storage_spec,
......@@ -819,9 +819,11 @@
* @param {Command} command The JIO command
*/
that.post = function (command) {
that.sendToAll('post', command.cloneDoc(), command.cloneOption()).
done(that.success).
fail(function (err) {
that.sendToAllAndGetFirstResolved(
'post',
command.cloneDoc(),
command.cloneOption()
).done(that.success).fail(function (err) {
err.message = "Unable to post";
that.error(err);
});
......
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