|
|
|
@ -433,7 +433,9 @@ public class StoredCollection<T: Storable>: RandomAccessCollection, SomeCollecti |
|
|
|
Task { |
|
|
|
Task { |
|
|
|
do { |
|
|
|
do { |
|
|
|
if let result = try await self._store.sendInsertion(instance) { |
|
|
|
if let result = try await self._store.sendInsertion(instance) { |
|
|
|
self._hasChanged = instance.copyFromServerInstance(result) |
|
|
|
DispatchQueue.main.async { |
|
|
|
|
|
|
|
self._hasChanged = instance.copyFromServerInstance(result) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} catch { |
|
|
|
} catch { |
|
|
|
Logger.error(error) |
|
|
|
Logger.error(error) |
|
|
|
|