Skip to content

Commit 266f2ce

Browse files
committed
Lagrer ikke lenger data omm brukers innlogging.
1 parent 53d9f8e commit 266f2ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/kotlin/no/nav/tms/statistikk/login/loginApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import io.ktor.server.routing.*
88

99
fun Route.loginApi(loginRepository: LoginRepository) {
1010
post("/innlogging") {
11-
val login: Login = call.receive()
12-
loginRepository.registerLogin(login.ident)
11+
// val login: Login = call.receive()
12+
// loginRepository.registerLogin(login.ident)
1313
call.respond(HttpStatusCode.NoContent)
1414
}
1515
}

src/test/kotlin/no/nav/tms/statistikk/StatistikkApiTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class StatistikkApiTest {
2828
}
2929

3030
@Test
31-
fun innlogging() = testApplication {
31+
fun `lagrer ikke data om innlogging`() = testApplication {
3232
application {
3333
statistikkApi(loginRepository, authorized)
3434
}
@@ -59,7 +59,7 @@ class StatistikkApiTest {
5959
.map {
6060
it.int("total")
6161
}.asSingle
62-
} shouldBe 2
62+
} shouldBe 0
6363
}
6464

6565
@Test

0 commit comments

Comments
 (0)