Skip to content

Commit

Permalink
määritelty luontiajan tarkkuus jotta testien vertailut ei failaa
Browse files Browse the repository at this point in the history
  • Loading branch information
marjakari committed Jan 15, 2024
1 parent eb508b1 commit 00f021f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class SecurityConfiguration {
.securityMatcher("/login")
.csrf(c => c.disable())
.formLogin(c => {
// c.defaultSuccessUrl(APIConstants.HEALTHCHECK_PATH)
c.defaultSuccessUrl("http://localhost:3000/lahetykset")
c.defaultSuccessUrl(APIConstants.HEALTHCHECK_PATH)
// c.defaultSuccessUrl("http://localhost:3000/lahetykset")
})
.build()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class KantaOperaatiot(db: JdbcBackend.JdbcDatabaseDef) {
${prioriteetti.toString}::prioriteetti, ${omistaja}, ${luontiaika.toString}::timestamptz, ${Instant.now.plusSeconds(60*60*24*sailytysAika).toString}::timestamptz)"""

Await.result(db.run(DBIO.sequence(Seq(lahetysInsertAction)).transactionally), DB_TIMEOUT)
Lahetys(lahetysTunniste, otsikko, omistaja, lahettavaPalvelu, lahettavanVirkailijanOID, lahettaja, replyTo, prioriteetti, luontiaika)
Lahetys(lahetysTunniste, otsikko, omistaja, lahettavaPalvelu, lahettavanVirkailijanOID, lahettaja, replyTo, prioriteetti, luontiaika.truncatedTo(java.time.temporal.ChronoUnit.MICROS))
}

/**
Expand Down

0 comments on commit 00f021f

Please sign in to comment.