We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
data
1 parent af3ac4e commit ee0a1a7Copy full SHA for ee0a1a7
src/main/kotlin/no/nav/klage/document/service/DocumentService.kt
@@ -89,6 +89,11 @@ class DocumentService(
89
version = latestVersionNumber
90
)
91
).get()
92
+
93
+ val document = documentRepository.findById(documentId).get()
94
+ document.data = data
95
+ document.modified = now
96
97
return mapToDocumentView(
98
documentVersion = documentVersionRepository.save(
99
DocumentVersion(
@@ -100,7 +105,7 @@ class DocumentService(
100
105
authorNavIdent = tokenUtil.getIdent()
101
106
102
107
),
103
- document = documentRepository.findById(documentId).get()
108
+ document = document
104
109
110
}
111
0 commit comments