-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slutt å bruk task som avslutter behandling #1664
Conversation
var behandling = behandlingRepository.findByIdOrThrow(behandlingId) | ||
if (behandling.status == Behandlingsstatus.AVSLUTTET) { | ||
log.medContext(logContext) { | ||
info("Behandling er allerede avsluttet") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
info("Behandling er allerede avsluttet") | |
info("Behandlingen er allerede avsluttet") |
?
|
||
if (!behandling.erUnderIverksettelse) { | ||
throw Feil( | ||
message = "Behandling med id=$behandlingId kan ikke avsluttes", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
message = "Behandling med id=$behandlingId kan ikke avsluttes", | |
message = "Behandlingen med id=$behandlingId kan ikke avsluttes", |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser bra ut for meg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ser greit ut 👍🏼
cc937bf
to
c270a8f
Compare
Den bruker bare database og kan like så greit kjøre i en transaksjon
c270a8f
to
404add9
Compare
Den bruker bare database og kan like så greit kjøre i en transaksjon