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) {
 | 
			
		||||
        try {
 | 
			
		||||
            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);
 | 
			
		||||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user