Hi
I have this code:
try {
this._FS.collection(“mycollection”).doc(“supermegaid”).update({state:8}).then(()=>{
console.log(“OK update FS”);
}).catch(err=>{
console.log("KO update FS", JSON.stringify(err));
});
} catch (error) {
console.log("KO 2 update FS", JSON.stringify(error));
}
console.log("finish update FS");
The result of update promise never exceute, can anyone tell me what i’m missing?
Env info;
Ionic:
ionic (Ionic CLI) : 4.1.1 (C:\Users\DCB\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.8
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 1.2.1, (and 4 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\DCB\AppData\Local\Android\Sdk)
NodeJS : v10.8.0 (C:\Program Files\nodejs\node.exe)
npm : 6.3.0
OS : Windows 10
Thanks