fix sync issues

sync3
Laurent 1 month ago
parent b9a052e7d9
commit a0d6580a98
  1. 6
      PadelClub/Views/Navigation/Toolbox/DebugSettingsView.swift
  2. 2
      PadelClubTests/SynchronizationTests.swift

@ -108,10 +108,8 @@ struct DebugSettingsView: View {
isSynchronizing = true isSynchronizing = true
} }
do { let error = await StoreCenter.main.synchronizeLastUpdates()
try await StoreCenter.main.synchronizeLastUpdates() if let error {
} catch {
Logger.error(error)
await MainActor.run { await MainActor.run {
errorMessage = error.localizedDescription errorMessage = error.localizedDescription
showingError = true showingError = true

@ -21,7 +21,7 @@ struct SynchronizationTests {
@Test func synchronizationTest() async throws { @Test func synchronizationTest() async throws {
_ = try await self.login() _ = try await self.login()
try await StoreCenter.main.synchronizeLastUpdates() await StoreCenter.main.synchronizeLastUpdates()
} }

Loading…
Cancel
Save