From b33313eed9a71542241c21bf682f1fa5308cd933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Fr=C3=B6hle?= Date: Wed, 19 Dec 2018 17:12:10 +0100 Subject: [PATCH] v2 fix transact --- dist/autoloader.js | 2 +- dist/autoloaderV2.js | 4 ++-- src/autoloaderV2.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/autoloader.js b/dist/autoloader.js index 051a05e..4120931 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Dec 19 2018 17:09:29 GMT+0100 (CET)*/ +/*Generated on:Wed Dec 19 2018 17:12:10 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index ba178d2..1115f50 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Wed Dec 19 2018 17:09:29 GMT+0100 (CET)*/ +/*Generated on:Wed Dec 19 2018 17:12:10 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -17513,7 +17513,7 @@ class AutomaticDispose { UpdatePoliceSprechwunschToDone(WunschID) { let self = this; return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => { - return self.ADisDB.ADisSprechwunschPolice.add({ + return self.ADisDB.ADisSprechwunschPolice.put({ missionID: WunschID, done: 'true' }) diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 886160b..f4041d6 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -506,7 +506,7 @@ class AutomaticDispose { UpdatePoliceSprechwunschToDone(WunschID) { let self = this; return self.ADisDB.transaction('rw', [self.ADisDB.ADisSprechwunschPolice], async () => { - return self.ADisDB.ADisSprechwunschPolice.add({ + return self.ADisDB.ADisSprechwunschPolice.put({ missionID: WunschID, done: 'true' })