Jul 26 - Update scheduled inspection settings
This commit is contained in:
@@ -238,6 +238,11 @@ actor APIClient {
|
||||
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 }
|
||||
// Links the submission back to the schedule it was started from so the
|
||||
// server fulfils it (clears the banner) and badges it as "Scheduled".
|
||||
if let schedId = inspection.scheduledInspectionServerId {
|
||||
body["scheduled_inspection_id"] = schedId
|
||||
}
|
||||
if !inspection.inspectorNotes.isEmpty { body["notes"] = inspection.inspectorNotes }
|
||||
if let lat = inspection.submitLatitude { body["submit_latitude"] = lat }
|
||||
if let lng = inspection.submitLongitude { body["submit_longitude"] = lng }
|
||||
|
||||
Reference in New Issue
Block a user