Fix SQL Audit Log entity: set correct userId property
This commit is contained in:
		
							parent
							
								
									a1883c75ad
								
							
						
					
					
						commit
						5206a0e4e9
					
				@ -140,7 +140,7 @@ public class AuditLogEntity extends BaseSqlEntity<AuditLog> implements BaseEntit
 | 
			
		||||
            auditLog.setEntityId(EntityIdFactory.getByTypeAndId(entityType.name(), toUUID(entityId).toString()));
 | 
			
		||||
        }
 | 
			
		||||
        if (userId != null) {
 | 
			
		||||
            auditLog.setUserId(new UserId(toUUID(entityId)));
 | 
			
		||||
            auditLog.setUserId(new UserId(toUUID(userId)));
 | 
			
		||||
        }
 | 
			
		||||
        auditLog.setEntityName(this.entityName);
 | 
			
		||||
        auditLog.setUserName(this.userName);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user