Skip to content

Commit

Permalink
fix: add flush to avoid metadata not updating from importer when it's…
Browse files Browse the repository at this point in the history
… already validated
  • Loading branch information
f-necas committed Jan 7, 2025
1 parent c4fa96f commit 67dffb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface MetadataValidationRepositoryCustom {
* @param metadataId the id of the metadata.
* @return the number of rows deleted
*/
@Modifying(clearAutomatically=true)
@Modifying(flushAutomatically = true, clearAutomatically = true)
@Transactional
@Query(value="DELETE FROM MetadataValidation v where v.id.metadataId = ?1 AND valtype != 'inspire'")
int deleteAllInternalValidationById_MetadataId(Integer metadataId);
Expand Down

0 comments on commit 67dffb4

Please sign in to comment.