Skip to content

Commit

Permalink
Hotfix for schedulingConfig decoding issue when upgrading from prior …
Browse files Browse the repository at this point in the history
…versions
  • Loading branch information
quanganhdo committed Dec 3, 2024
1 parent b79d4cd commit 2c5eb21
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ public struct DataBroker: Codable, Sendable {

version = try container.decode(String.self, forKey: .version)
steps = try container.decode([Step].self, forKey: .steps)
schedulingConfig = try container.decode(DataBrokerScheduleConfig.self, forKey: .schedulingConfig)
// Hotfix for https://app.asana.com/0/1203581873609357/1208895331283089/f
do {
schedulingConfig = try container.decode(DataBrokerScheduleConfig.self, forKey: .schedulingConfig)
} catch {
schedulingConfig = .init(retryError: 48, confirmOptOutScan: 72, maintenanceScan: 120, maxAttempts: -1)
}
parent = try? container.decode(String.self, forKey: .parent)

do {
Expand Down

0 comments on commit 2c5eb21

Please sign in to comment.