RED-9608 - Comments not removed after uploading multiple files via ZIP-Archive with "Overwrite and start over" selected

- update repository
This commit is contained in:
corinaolariu 2024-07-16 14:14:34 +03:00
parent 552d760ead
commit 5cfb45d3d2

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);