Bypass JPA org lookup to avoid Hibernate cascade flush error

FixSecurityService
Shipped
lúc 19:26 18 tháng 4, 2026 UTC
Author
Kamo
Commit
f4123e8

**************** triggers **************** which causes a Hibernate auto-flush. That flush fails because Organization.features was previously replaced with a plain List (cascade=all-delete-orphan violation). The resendVerification endpoint only needs the org ID, so replace the JPA call with a plain jdbcTemplate query — the same pattern already used for user lookup in this method.

All changes

Như những gì anh thấy vận chuyển?

Mỗi một bản cập nhật này đều được tự động cập nhật trong không gian làm việc của bạn. Bắt đầu tự do và xem nó lớn lên tuần này qua tuần khác.

Bắt đầu tự do mãi mãiXem truy cập