RED-9608 - Comments not removed after uploading multiple files via ZIP-Archive... #601

Merged
corina.olariu.ext1 merged 2 commits from RED-9608 into master 2024-07-16 16:49:25 +02:00
Showing only changes of commit 5cfb45d3d2 - Show all commits

View File

@ -44,7 +44,7 @@ public interface CommentRepository extends JpaRepository<CommentEntity, Long> {
void softDeleteCommentsByFilesAndAnnotationSoftDeletedTime(@Param("fileIds") List<String> fileIds, @Param("softDeleteTime") OffsetDateTime softDeleteTime);
@Modifying
@Query("update CommentEntity c set c.softDeletedTime = :softDeleteTime where c.fileId in (:fileIds)")
@Query("update CommentEntity c set c.softDeletedTime = :softDeleteTime where c.fileId in (:fileIds) and c.softDeletedTime is null")
void softDeleteCommentsByFiles(@Param("fileIds") List<String> fileIds, @Param("softDeleteTime") OffsetDateTime softDeleteTime);