fix typo in alarmActionMsg

This commit is contained in:
ShvaykaD 2022-10-06 19:48:44 +03:00
parent 6e34747b95
commit 673e2cb5be

View File

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