Refactor reportUrl to reportURL.

This commit is contained in:
Doug
2025-06-18 12:38:21 +01:00
committed by Doug
parent d2562b1b7e
commit 2d926f446a
5 changed files with 11 additions and 7 deletions
@@ -137,7 +137,6 @@ class BugReportService: NSObject, BugReportServiceProtocol {
// Parse the JSON data
let decoder = JSONDecoder()
decoder.keyDecodingStrategy = .convertFromSnakeCase
let uploadResponse = try decoder.decode(SubmitBugReportResponse.self, from: data)
lastCrashEventID = nil
@@ -22,7 +22,11 @@ struct BugReport: Equatable {
}
struct SubmitBugReportResponse: Decodable {
var reportUrl: String?
var reportURL: String?
enum CodingKeys: String, CodingKey {
case reportURL = "report_url"
}
}
enum BugReportServiceError: LocalizedError {