RED-2501 Excluding a file from redaction removes reviewer
- update file repository to update the excluded flag for the file id given
This commit is contained in:
parent
7fe73674d2
commit
9d20bc3c0e
@ -109,11 +109,7 @@ public interface FileRepository extends JpaRepository<FileEntity, String> {
|
||||
WorkflowStatus workflowStatus);
|
||||
|
||||
@Modifying
|
||||
@Query("update FileEntity f set f.excluded = :excluded, f.lastUpdated = :lastUpdated, f.lastProcessed = null, " +
|
||||
"f.lastReviewer = null, f.currentReviewer = null, f.approvalDate = null, f.lastManualRedaction = null, " +
|
||||
"f.dictionaryVersion = 0, f.dossierDictionaryVersion = 0, f.rulesVersion = 0, f.hasImages = false, " +
|
||||
"f.hasHints = false, f.hasRedactions = false, f.hasSuggestions = false, f.hasUpdates = false " +
|
||||
"where f.id = :fileId")
|
||||
@Query("update FileEntity f set f.excluded = :excluded, f.lastUpdated = :lastUpdated where f.id = :fileId")
|
||||
int toggleExclusion(String fileId, boolean excluded, OffsetDateTime lastUpdated);
|
||||
|
||||
@Modifying
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user