This commit is contained in:
Peter Maquiran
2021-11-19 14:56:29 +01:00
parent 94f4f3e7e0
commit cb3d5957f4
6 changed files with 36 additions and 32 deletions
+11 -8
View File
@@ -207,15 +207,18 @@ export class SqliteService {
//updateActions
public updateactions(id, data) {
console.log("update action data", data)
this.dbInstance.executeSql(`
UPDATE ${this.actions} SET publications = ? WHERE ProcessId = ${id}`, [data])
.then(() => {
console.log("action update with Success");
try {
console.log("update action data", data)
this.dbInstance.executeSql(`
UPDATE ${this.actions} SET publications = ? WHERE ProcessId = ${id}`, [data])
.then(() => {
console.log("action update with Success");
}, (e) => {
console.log(JSON.stringify(e.err));
});
} catch(error) {}
}, (e) => {
console.log(JSON.stringify(e.err));
});
}