|
|
|
@ -31,6 +31,7 @@ public class StoredSingleton<T: SyncedStorable>: SyncedCollection<T> { |
|
|
|
let result = try await StoreCenter.main.service().rawPut(instance) |
|
|
|
let result = try await StoreCenter.main.service().rawPut(instance) |
|
|
|
if let item = self.item() { |
|
|
|
if let item = self.item() { |
|
|
|
item.copy(from: result) |
|
|
|
item.copy(from: result) |
|
|
|
|
|
|
|
self.addOrUpdate(instance: item) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|