mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Update FileRunEventRepository.java
This commit is contained in:
+4
-5
@@ -106,11 +106,10 @@ public interface FileRunEventRepository extends JpaRepository<FileRunEventEntity
|
||||
@Query(
|
||||
"update FileRunEventEntity e set e.status ="
|
||||
+ " stirling.software.proprietary.failure.FileRunEventStatus.FILE_REMOVED,"
|
||||
+ " e.statusActor = :actor, e.statusAt = :now where e.origin ="
|
||||
+ " stirling.software.proprietary.failure.FailureOrigin.TOOL and ((:teamId is null"
|
||||
+ " and e.teamId is null) or e.teamId = :teamId) and ((:actor is null and e.actor"
|
||||
+ " is null) or e.actor = :actor) and e.fileId in :fileIds and e.status in"
|
||||
+ " :allowedFrom")
|
||||
+ " e.statusActor = :actor, e.statusAt = :now where e.sourceId is null and"
|
||||
+ " ((:teamId is null and e.teamId is null) or e.teamId = :teamId) and ((:actor is"
|
||||
+ " null and e.actor is null) or e.actor = :actor) and e.fileId in :fileIds and"
|
||||
+ " e.status in :allowedFrom")
|
||||
int markFilesRemoved(
|
||||
@Param("teamId") Long teamId,
|
||||
@Param("actor") String actor,
|
||||
|
||||
Reference in New Issue
Block a user