Skip to content

Commit 6c3b90e

Browse files
style: solve style issues
1 parent a3bd789 commit 6c3b90e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/kotlin/infrastructure/api/RoomApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ private fun Route.getHistoricalRoomEnvironmentDataRoute(apiPath: String, provide
111111
call.request.queryParameters["from"]?.let { rawDateTime -> Instant.parse(rawDateTime) }
112112
?: Instant.now(),
113113
call.request.queryParameters["to"]?.let { rawDateTime -> Instant.parse(rawDateTime) }
114-
).execute()?.map {
115-
ApiResponses.ResponseTimedEntry(it.second, it.first.toString())
114+
).execute()?.map { pair ->
115+
ApiResponses.ResponseTimedEntry(pair.second, pair.first.toString())
116116
}.apply {
117117
when (this) {
118118
null -> call.respond(HttpStatusCode.NotFound)

src/test/kotlin/infrastructure/api/RoomApiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class RoomApiTest : StringSpec({
134134
val response = client.get("/api/v1/rooms/data/${roomEntry.id}")
135135
response shouldHaveStatus HttpStatusCode.OK
136136
Json.decodeFromString<ApiResponses.ResponseEntryList<ApiResponses.ResponseTimedEntry<
137-
RoomEnvironmentalData>>>(
137+
RoomEnvironmentalData>>>(
138138
response.bodyAsText()
139139
).total shouldBe 0
140140
}

0 commit comments

Comments
 (0)