diff --git a/WebService/Sources/Buoy/Handlers/SensorData.swift b/WebService/Sources/Buoy/Handlers/SensorData.swift index 5a2316e..0edd4ba 100644 --- a/WebService/Sources/Buoy/Handlers/SensorData.swift +++ b/WebService/Sources/Buoy/Handlers/SensorData.swift @@ -9,7 +9,7 @@ struct SensorData: Handler { readJSONDirectory(SensorDump.self, dirPath: Self.dirPath) .map { SensorDump( - buoyId: $0.buoyId, + buoyID: $0.buoyID, date: $0.date, location: $0.location, measurements: $0.measurements.map { item in diff --git a/WebService/Sources/Buoy/Model/SensorDump.swift b/WebService/Sources/Buoy/Model/SensorDump.swift index ff52764..08a991f 100644 --- a/WebService/Sources/Buoy/Model/SensorDump.swift +++ b/WebService/Sources/Buoy/Model/SensorDump.swift @@ -8,7 +8,7 @@ struct SensorDump: Content, Decodable { func filteredBySensorType(_ sensorType: SensorType) -> SensorDump { SensorDump( - buoyId: self.buoyId, + buoyID: self.buoyID, date: self.date, location: self.location, measurements: self.measurements.filter { $0.sensorType == sensorType } @@ -17,7 +17,7 @@ struct SensorDump: Content, Decodable { func convertMeasurements(_ converter: MeasurementConverter) -> SensorDump { SensorDump( - buoyId: self.buoyId, + buoyID: self.buoyID, date: self.date, location: self.location, measurements: self.measurements.map { item in