[CP-17334] Edge rule chain error

- Skip saving EdgeEvent if edgeId equals originatorEdgeId
This commit is contained in:
yevhenii 2025-06-17 17:49:08 +03:00
parent ffad592186
commit df1e2a0c51

View File

@ -219,7 +219,7 @@ public abstract class BaseEdgeProcessor implements EdgeProcessor {
case CREDENTIALS_UPDATED:
case ASSIGNED_TO_CUSTOMER:
case UNASSIGNED_FROM_CUSTOMER:
if (edgeId != null) {
if (edgeId != null && !edgeId.equals(originatorEdgeId)) {
return saveEdgeEvent(tenantId, edgeId, type, actionType, entityId, body);
} else {
return processNotificationToRelatedEdges(tenantId, entityId, type, actionType, originatorEdgeId);