Commit a791fa8c authored by Aurel's avatar Aurel

return queue for promise

parent bf969260
......@@ -155,6 +155,7 @@ var DATABASE = "erp5toerp5";
indexedDB.deleteDatabase('jio:' + DATABASE);
this._locale_jio_instance = jIO.createJIO({
type: "replicate",
parallel_operation_amount: 10,
query: spec.source_query,
use_remote_post: true,
conflict_handling: 1,
......@@ -182,6 +183,7 @@ var DATABASE = "erp5toerp5";
});
this._remote_jio_instance = jIO.createJIO({
type: "replicate",
parallel_operation_amount: 10,
query: {
query: 'portal_type: "' + spec.source_portal_type + '"'
},
......@@ -229,7 +231,7 @@ var DATABASE = "erp5toerp5";
ERP5ToERP5Storage.prototype.repair = function () {
var context = this;
RSVP.Queue()
return RSVP.Queue()
.push(function () {
return context._locale_jio_instance.repair();
})
......
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