You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code never complete the RES1 step and no exception is fired
try {
await _db.transaction((txn) async {
StoreRef storeRef = intMapStoreFactory.store(kBeaconsStore);
for (final rec in records) {
final record = storeRef.record(int.parse(rec.id));
if (await record.exists(_db)) {
final res = await record.get(_db);
print("RES: $res");
final res1 = await record.update(_db, {'isFlushed': true});
print("RES1: $res1");
} else {
print("Record with id ${rec.id} not found");
}
}
});
} catch (e) {
throw BeaconLocationStoreException('[markRecordsAsFlushed] $e');
}
This code is working (removing the transaction)
StoreRef storeRef = intMapStoreFactory.store(kBeaconsStore);
for (final rec in records) {
final record = storeRef.record(int.parse(rec.id));
if (await record.exists(_db)) {
final res = await record.get(_db);
print("RES: $res");
final res1 = await record.update(_db, {'isFlushed': true});
print("RES1: $res1");
} else {
print("Record with id ${rec.id} not found");
}
}
The text was updated successfully, but these errors were encountered:
The following code never complete the RES1 step and no exception is fired
This code is working (removing the transaction)
The text was updated successfully, but these errors were encountered: