RED-5097 - ocr status updates - lastUpdated needs to change when ocr values change

This commit is contained in:
Timo Bejan 2022-10-10 23:20:55 +03:00
parent 2a862e4f4c
commit 041b2a9dc4

View File

@ -239,7 +239,7 @@ public interface FileRepository extends JpaRepository<FileEntity, String> {
@Transactional
@Modifying(clearAutomatically = true)
@Query(value = "update FileEntity f set f.numberOfOCRedPages = :numberOfOCRedPages, f.numberOfPagesToOCR = :numberOfPagesToOCR, f.ocrEndTime = :ocrEndTime, " +
" f.lastUpdated = :lastUpdated, where f.id = :fileId")
" f.lastUpdated = :lastUpdated where f.id = :fileId")
void updateOCRStatus(String fileId, int numberOfPagesToOCR, int numberOfOCRedPages, OffsetDateTime ocrEndTime, OffsetDateTime lastUpdated);
}