Using the JS framework, I want to update a value in a stored json document.
I have the addOrUpdateKeys call filtered/blocked by firefox. (same origin policy?), but this is working on Chrome...
whereas calls for retrieve date and insert in collection are good.
Any idea for the resolution of this ?
var TAG = new Object();
TAG.user = sessionStorage.getItem('pseudo');
TAG.userId = sessionStorage.getItem('sessionId');
var promiseReservation = new Promise( function(resolve, reject) {
var storageService = new App42Storage();
var keys = new Object();
keys.TAG = TAG;
storageService.addOrUpdateKeys(dbName, collectionName, wishId, keys,
{
success: function(object) {
console.log("ok");
resolve();
},
error: function(error) {
reject("huhu");
}
});
});