Browse Source

fix typo in alarmActionMsg

pull/7238/head
ShvaykaD 4 years ago
parent
commit
673e2cb5be
  1. 2
      application/src/main/java/org/thingsboard/server/actors/ruleChain/DefaultTbContext.java

2
application/src/main/java/org/thingsboard/server/actors/ruleChain/DefaultTbContext.java

@ -360,7 +360,7 @@ class DefaultTbContext implements TbContext {
AssetId assetId = new AssetId(alarm.getOriginator().getId());
profile = mainCtx.getAssetProfileCache().get(getTenantId(), assetId);
}
return entityActionMsg(alarm, alarm.getId(), ruleNodeId, action, profile);
return entityActionMsg(alarm, alarm.getOriginator(), ruleNodeId, action, profile);
}
public TbMsg attributesUpdatedActionMsg(EntityId originator, RuleNodeId ruleNodeId, String scope, List<AttributeKvEntry> attributes) {

Loading…
Cancel
Save