Fix missing method

sync2
Laurent 11 months ago
parent f4b135c281
commit c51b6e1906
  1. 5
      LeStorage/StoredCollection+Sync.swift
  2. 6
      LeStorage/StoredCollection.swift

@ -149,6 +149,11 @@ extension StoredCollection: SomeSyncedCollection where T : SyncedStorable {
}
/// Proceeds to delete all instance of the collection, properly cleaning up dependencies and sending API calls
public func deleteAll() throws {
self.delete(contentOfs: self.items)
}
/// Deletes all items of the sequence by id and sets the collection as changed to trigger a write
public func delete(contentOfs sequence: any Sequence<T>) {

@ -331,9 +331,9 @@ public class StoredCollection<T: Storable>: RandomAccessCollection, SomeCollecti
}
/// Proceeds to delete all instance of the collection, properly cleaning up dependencies and sending API calls
// public func deleteAll() throws {
// try self.delete(contentOfs: self.items)
// }
public func deleteAll() throws {
self.delete(contentOfs: self.items)
}
// MARK: - SomeCall

Loading…
Cancel
Save