RED-6934: Fixed transaction handling for file attributes #13

Merged
dominique.eiflaender1 merged 1 commits from RED-6934 into master 2023-06-20 15:07:28 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -159,6 +159,7 @@ public class FileAttributesManagementService {
}
@Transactional
public void setFileAttributes(String dossierId, String fileId, Map<String, String> fileAttributesMap) {
fileStatusPersistenceService.setFileAttributes(dossierId, fileId, fileAttributesMap);

View File

@ -246,7 +246,7 @@ public class FileStatusPersistenceService {
}
@Transactional(value = Transactional.TxType.REQUIRES_NEW)
@Transactional
public void setFileAttributes(String dossierId, String fileId, Map<String, String> fileAttributes) {
fileAttributesRepository.deleteByFileId(fileId);