Skip to content

Commit ee0a1a7

Browse files
committed
Update data.
1 parent af3ac4e commit ee0a1a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/kotlin/no/nav/klage/document/service/DocumentService.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ class DocumentService(
8989
version = latestVersionNumber
9090
)
9191
).get()
92+
93+
val document = documentRepository.findById(documentId).get()
94+
document.data = data
95+
document.modified = now
96+
9297
return mapToDocumentView(
9398
documentVersion = documentVersionRepository.save(
9499
DocumentVersion(
@@ -100,7 +105,7 @@ class DocumentService(
100105
authorNavIdent = tokenUtil.getIdent()
101106
)
102107
),
103-
document = documentRepository.findById(documentId).get()
108+
document = document
104109
)
105110
}
106111

0 commit comments

Comments
 (0)