Skip to content
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

Vil sjekke riktig type LagJournalføringsoppgaveForEttersendingTask.TYPE #1042

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package no.nav.familie.ef.mottak.api

import no.nav.familie.ef.mottak.service.EttersendingService
import no.nav.familie.ef.mottak.task.ArkiverEttersendingTask
import no.nav.familie.ef.mottak.task.LagJournalføringsoppgaveTask
import no.nav.familie.ef.mottak.task.LagJournalføringsoppgaveForEttersendingTask
import no.nav.familie.log.IdUtils
import no.nav.familie.prosessering.domene.Status
import no.nav.familie.prosessering.internal.TaskService
Expand Down Expand Up @@ -41,7 +41,7 @@ class ForvaltningController(private val ettersendingService: EttersendingService
@PostMapping("/ettersending/journalforingoppgave/endrecallid")
fun endreCallIdPåTaskForJournalføringoppgave(@RequestBody taskId: TaskId): ResponseEntity<String> {
val task = taskService.findById(taskId.id)
require(task.type == LagJournalføringsoppgaveTask.TYPE) { "Kan ikke endre på ny callId på task når type er ${task.type}" }
require(task.type == LagJournalføringsoppgaveForEttersendingTask.TYPE) { "Kan ikke endre på ny callId på task når type er ${task.type}" }
require(task.status == Status.FEILET) { "Kan ikke endre på ny callId på task når status er ${task.status}" }
val callId = task.callId.replace("Ø", "O")
task.metadata.apply {
Expand Down