fix(sync): fix BatchResult.errors type mismatch — backend returns {id,error} objects not strings

This commit is contained in:
saravanakumardb1 2026-03-01 21:27:44 -08:00
parent 48b88d3a29
commit d6b1bb6f63

View File

@ -417,7 +417,12 @@ struct SyncConflict: Codable {
struct BatchResult: Codable {
let synced: [String]
let conflicts: [SyncConflict]
let errors: [String]
let errors: [BatchError]
}
struct BatchError: Codable {
let id: String
let error: String
}
// MARK: - Offline Queue