Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Apr 11, 2024
1 parent 1a16f1e commit 27f96e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/syfo/db/UtbetalingSpleisDAO.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package no.nav.syfo.db

import no.nav.syfo.domain.PersonIdent
import no.nav.syfo.kafka.consumers.utbetaling.domain.UtbetalingSpleis
import org.postgresql.util.PSQLException
import java.sql.Date
import java.sql.SQLIntegrityConstraintViolationException
import java.sql.Timestamp
import java.time.LocalDateTime
import java.util.*
Expand Down Expand Up @@ -47,7 +47,7 @@ fun DatabaseInterface.storeSpleisUtbetaling(utbetaling: UtbetalingSpleis) {
it.executeUpdate()
}
connection.commit()
} catch (e: PSQLException) {
} catch (e: SQLIntegrityConstraintViolationException) {
log.debug("Ignoring duplicate message from Spleis with utbetalingID " + utbetaling.utbetalingId)
}
}
Expand Down

0 comments on commit 27f96e8

Please sign in to comment.