Commit 5206a0e4e9c8b037e9ea3e18277a8b51b799c079

Authored by Igor Kulikov
1 parent a1883c75

Fix SQL Audit Log entity: set correct userId property

... ... @@ -140,7 +140,7 @@ public class AuditLogEntity extends BaseSqlEntity<AuditLog> implements BaseEntit
140 140 auditLog.setEntityId(EntityIdFactory.getByTypeAndId(entityType.name(), toUUID(entityId).toString()));
141 141 }
142 142 if (userId != null) {
143   - auditLog.setUserId(new UserId(toUUID(entityId)));
  143 + auditLog.setUserId(new UserId(toUUID(userId)));
144 144 }
145 145 auditLog.setEntityName(this.entityName);
146 146 auditLog.setUserName(this.userName);
... ...