05/05 Update the API to follow-up and resinspection
This commit is contained in:
@@ -155,9 +155,10 @@ actor APIClient {
|
||||
"form_data": inspection.formData,
|
||||
"mobile_local_id": inspection.localId,
|
||||
]
|
||||
if let score = inspection.overallScore { body["overall_score"] = score }
|
||||
if let areaId = inspection.areaServerId { body["area_id"] = areaId }
|
||||
if !inspection.inspectorNotes.isEmpty { body["notes"] = inspection.inspectorNotes }
|
||||
if let score = inspection.overallScore { body["overall_score"] = score }
|
||||
if let areaId = inspection.areaServerId { body["area_id"] = areaId }
|
||||
if let parentId = inspection.parentServerId { body["parent_inspection_id"] = parentId }
|
||||
if !inspection.inspectorNotes.isEmpty { body["notes"] = inspection.inspectorNotes }
|
||||
|
||||
let fmt = ISO8601DateFormatter()
|
||||
body["inspection_date"] = fmt.string(from: inspection.inspectionDate)
|
||||
|
||||
Reference in New Issue
Block a user