From baf3e3a867cb31a254467067913f71346d0569eb Mon Sep 17 00:00:00 2001 From: Sindre Kjelsrud Date: Thu, 20 Jul 2023 16:10:10 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F=20=20Fjernet=20ubrukt=20kode?= =?UTF-8?q?=20for=20=C3=A5=20fikse=20deploy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Markus A. R. Johansen --- .../test/kotlin/{LocalApp.kt.kt => LocalApp.kt} | 15 ++++++++------- frontend/src/components/CardsContainer.tsx | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) rename backend/src/test/kotlin/{LocalApp.kt.kt => LocalApp.kt} (68%) diff --git a/backend/src/test/kotlin/LocalApp.kt.kt b/backend/src/test/kotlin/LocalApp.kt similarity index 68% rename from backend/src/test/kotlin/LocalApp.kt.kt rename to backend/src/test/kotlin/LocalApp.kt index fc98944..bfb33f4 100644 --- a/backend/src/test/kotlin/LocalApp.kt.kt +++ b/backend/src/test/kotlin/LocalApp.kt @@ -1,12 +1,11 @@ import no.nav.helse.sprik.Application import no.nav.helse.sprik.configureFlyway import no.nav.helse.sprik.db.Database -import no.nav.helse.sprik.db.FeilmeldingRepository +// import no.nav.helse.sprik.db.FeilmeldingRepository import no.nav.helse.sprik.dbconfig -import no.nav.helse.sprik.modell.Feilmelding -import org.intellij.lang.annotations.Language -import java.time.LocalDateTime -import javax.sql.DataSource +// import no.nav.helse.sprik.modell.Feilmelding +// import java.time.LocalDateTime +// import javax.sql.DataSource fun main() { @@ -14,12 +13,14 @@ fun main() { val db = Database(dbconfig()).configureFlyway() val app = Application(db) - oppretteMockData(db.dataSource) + // oppretteMockData(db.dataSource) // WIP app.startBlocking() } +/* WIP private fun oppretteMockData(dataSource: DataSource) { val feilmeldingRepository = FeilmeldingRepository() feilmeldingRepository.lagre(Feilmelding("Tittel Test", "Beskrivelse Test", LocalDateTime.of(2023, 1, 1, 8, 0, 0))) -} \ No newline at end of file +} +*/ \ No newline at end of file diff --git a/frontend/src/components/CardsContainer.tsx b/frontend/src/components/CardsContainer.tsx index 392c106..d51fe97 100644 --- a/frontend/src/components/CardsContainer.tsx +++ b/frontend/src/components/CardsContainer.tsx @@ -1,4 +1,3 @@ -import axios from "axios" import FeilCard from "./FeilCard" import useSWR from "swr" /**