- fix: check if need refresh.. part 1

- keytab in todo...
This commit is contained in:
Paolo Arena
2019-02-04 04:17:50 +01:00
parent b2e760faa9
commit fb099322d4
5 changed files with 55 additions and 13 deletions

View File

@@ -277,9 +277,12 @@ self.addEventListener('sync', function (event) {
})
.then(function (resData) {
console.log('Result CALL ', method, ' OK? =', resData.ok);
if (resData.ok) {
deleteItemFromData(table, rec._id);
}
// Anyway Delete this, otherwise in some cases will return error, but it's not a problem.
// for example if I change a record and then I deleted ...
// if (resData.ok) {
deleteItemFromData(table, rec._id);
// }
console.log('DELETE: ', mystrparam)
deleteItemFromData('swmsg', mystrparam)