Pull request #104: RED-2501 Excluding a file from redaction removes reviewer
Merge in RED/persistence-service from bugfix/RED-2501 to master * commit '9d20bc3c0e61662a8f45bb0244cb512f7ae6239f': RED-2501 Excluding a file from redaction removes reviewer
This commit is contained in:
commit
e22034aa01
@ -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