Skip to content

Commit 1d41842

Browse files
committed
šŸ› Fix(bo): error when regrouping tenants
Fix java.lang.IllegalStateException: Transaction synchronization is not active
1 parent 4f9da66 commit 1d41842

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

ā€Ždossierfacile-common-library/src/main/java/fr/dossierfacile/common/service/PartnerCallBackServiceImpl.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,11 @@ public void sendCallBack(Tenant tenant, PartnerCallBackType partnerCallBackType)
9191
List<ApplicationModel> applicationModelList = findAllUserApi(tenant.getApartmentSharing()).stream()
9292
.map(userApi -> getWebhookDTO(tenant, userApi, partnerCallBackType)).toList();
9393

94-
TransactionalUtil.afterCommit(() -> {
95-
try {
96-
applicationModelList.forEach(model -> sendCallBack(tenant, model.getUserApi(), model));
97-
} catch (Exception e) {
98-
log.error("CAUTION Unable to send notification to partner", e);
99-
}
100-
});
94+
try {
95+
applicationModelList.forEach(model -> sendCallBack(tenant, model.getUserApi(), model));
96+
} catch (Exception e) {
97+
log.error("CAUTION Unable to send notification to partner", e);
98+
}
10199

102100
}
103101

0 commit comments

Comments
Ā (0)