Skip to content

Commit

Permalink
Legg til tabell i ryddeliste
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr committed Dec 19, 2024
1 parent bcb8926 commit e533cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class AktivitetsplanController(
@RequestBody aktivitet: AktivitetDTO,
@RequestParam(required = false, defaultValue = "false") automatisk: Boolean
): AktivitetDTO {
// TODO: Endepunkt for alle nye aktiviteter, inkludert samtalereferat som enten er delt med bruker eller ikke
return aktivitetDataMapperService.mapTilAktivitetData(aktivitet)
.withAutomatiskOpprettet(automatisk)
.let { aktivitetData -> appService.opprettNyAktivitet(aktivitetData) }
Expand Down Expand Up @@ -124,7 +123,6 @@ class AktivitetsplanController(
@AuthorizeFnr(auditlogMessage = "oppdater referat", resourceIdParamName = "aktivitetId", resourceType = AktivitetResource::class)
@OnlyInternBruker
fun oppdaterReferat(@RequestBody aktivitetDTO: AktivitetDTO): AktivitetDTO {
// TODO: Upubliserte og publiserte samtalereferat for møter
return Optional.of(aktivitetDTO)
.map { aktivitetDTO -> aktivitetDataMapperService.mapTilAktivitetData(aktivitetDTO) }
.map { aktivitet -> appService.oppdaterReferat(aktivitet) }
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/no/nav/veilarbaktivitet/db/DbTestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class DbTestUtils {
"AKTIVITET",
"FORHAANDSORIENTERING",
"SHEDLOCK",
"ID_MAPPINGER",
"OVERSIKTEN_MELDING_AKTIVITET_MAPPING",
"OVERSIKTEN_MELDING_MED_METADATA"
);

Expand Down

0 comments on commit e533cd7

Please sign in to comment.