RED-3314 Bugfix with timestamp for hardDelete method
This commit is contained in:
parent
cdee2f8ff5
commit
a6a1748b3c
@ -233,10 +233,9 @@ public class FileStatusPersistenceService {
|
|||||||
@Transactional
|
@Transactional
|
||||||
public void hardDelete(String fileId) {
|
public void hardDelete(String fileId) {
|
||||||
|
|
||||||
int countUpdate = fileRepository.setHardDelete(fileId, ProcessingStatus.DELETED,
|
var now = OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS);
|
||||||
OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS),
|
|
||||||
OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS),
|
int countUpdate = fileRepository.setHardDelete(fileId, ProcessingStatus.DELETED, now, now, now);
|
||||||
OffsetDateTime.now().truncatedTo(ChronoUnit.MILLIS));
|
|
||||||
if (countUpdate == 0) {
|
if (countUpdate == 0) {
|
||||||
throw new NotFoundException("Unknown file=" + fileId);
|
throw new NotFoundException("Unknown file=" + fileId);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user