Merge pull request #8293 from adovh/bug/fix-1899-rulechain-messages-sent-to-wrong-tenant

fix rulechain messages sent to wrong tenant
This commit is contained in:
Andrew Shvayka 2023-04-06 13:09:09 +03:00 committed by GitHub
commit 42f4c0c2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ public class TbRuleChainInputNode implements TbNode {
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
this.config = TbNodeUtils.convert(configuration, TbRuleChainInputNodeConfiguration.class);
this.ruleChainId = new RuleChainId(UUID.fromString(config.getRuleChainId()));
ctx.checkTenantEntity(ruleChainId);
}
@Override