From 80481a9ef0f5f3980cd037f5614df4279e542a02 Mon Sep 17 00:00:00 2001 From: Ugur Cenar Date: Thu, 30 May 2024 15:00:23 +0200 Subject: [PATCH 1/2] Saf query jpid string --- .../no/nav/bidrag/dokument/arkiv/query/JournalpostQuery.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/no/nav/bidrag/dokument/arkiv/query/JournalpostQuery.kt b/src/main/kotlin/no/nav/bidrag/dokument/arkiv/query/JournalpostQuery.kt index c4dbf09a..30d61678 100644 --- a/src/main/kotlin/no/nav/bidrag/dokument/arkiv/query/JournalpostQuery.kt +++ b/src/main/kotlin/no/nav/bidrag/dokument/arkiv/query/JournalpostQuery.kt @@ -7,6 +7,6 @@ data class JournalpostQuery(val journalpostId: Long) : GraphQuery() { } override fun getVariables(): HashMap { - return hashMapOf("journalpostId" to journalpostId) + return hashMapOf("journalpostId" to journalpostId.toString()) } } From af3fd392cc1d9c79a72f470b9d09f0368a38159d Mon Sep 17 00:00:00 2001 From: Ugur Cenar Date: Thu, 30 May 2024 15:06:44 +0200 Subject: [PATCH 2/2] Saf query jpid string --- src/test/java/no/nav/bidrag/dokument/arkiv/JsonMapperTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/no/nav/bidrag/dokument/arkiv/JsonMapperTest.kt b/src/test/java/no/nav/bidrag/dokument/arkiv/JsonMapperTest.kt index ee73e70f..3b72c0c4 100644 --- a/src/test/java/no/nav/bidrag/dokument/arkiv/JsonMapperTest.kt +++ b/src/test/java/no/nav/bidrag/dokument/arkiv/JsonMapperTest.kt @@ -240,7 +240,7 @@ internal class JsonMapperTest { Executable { Assertions.assertThat(safQuery.getVariables()) .`as`("Variables") - .containsEntry("journalpostId", 1235L) + .containsEntry("journalpostId", "1235") }, ) }