fix: Preserve harness transactions for non-synced row updates (#133)
This commit is contained in:
parent
1f5501ff97
commit
4789f650be
1 changed files with 626 additions and 0 deletions
|
|
@ -657,6 +657,13 @@ class OfflineSyncDatabase implements Database {
|
|||
Transaction? transaction,
|
||||
}) async {
|
||||
await _ensureInitialized();
|
||||
if (!_recorder.isCrdtTracked<T>(row.table)) {
|
||||
return _delegate.updateRow<T>(
|
||||
row,
|
||||
columns: columns,
|
||||
transaction: transaction,
|
||||
);
|
||||
}
|
||||
return DatabaseUtil.runInTransactionOrSavepoint(
|
||||
_delegate,
|
||||
transaction,
|
||||
|
|
|
|||
Loading…
Reference in a new issue