Commit a791fa8c authored by Aurel's avatar Aurel

return queue for promise

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