RelationActionEvent - check for existing tenant in case RELATION_DELETED
This commit is contained in:
parent
375792da19
commit
5653ac7f2f
@ -168,7 +168,7 @@ public class EdgeEventSourcingListener {
|
|||||||
public void handleEvent(RelationActionEvent event) {
|
public void handleEvent(RelationActionEvent event) {
|
||||||
try {
|
try {
|
||||||
TenantId tenantId = event.getTenantId();
|
TenantId tenantId = event.getTenantId();
|
||||||
if (!tenantId.isSysTenantId() && !tenantService.tenantExists(tenantId)) {
|
if (ActionType.RELATION_DELETED.equals(event.getActionType()) && !tenantService.tenantExists(tenantId)) {
|
||||||
log.debug("[{}] Ignoring RelationActionEvent because tenant does not exist: {}", tenantId, event);
|
log.debug("[{}] Ignoring RelationActionEvent because tenant does not exist: {}", tenantId, event);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user