Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerbert committed Sep 29, 2021
1 parent df37369 commit 77df0c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WebService/Sources/Buoy/Handlers/SensorData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions WebService/Sources/Buoy/Model/SensorDump.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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
Expand Down

0 comments on commit 77df0c2

Please sign in to comment.