SERVER_SCOPE by default, if not provided in metadata

This commit is contained in:
Volodymyr Babak 2020-11-19 17:26:07 +02:00
parent 5023d63e59
commit 3bdb7bb5ad
2 changed files with 1 additions and 3 deletions

View File

@ -176,7 +176,7 @@ public class TbMsgPushToEdgeNode implements TbNode {
private String getScope(Map<String, String> metadata) {
String scope = metadata.get(SCOPE);
if (StringUtils.isEmpty(scope)) {
// TODO: voba - move this to configuration of the node or some other place
// TODO: voba - move this to configuration of the node UI or some other place
scope = DataConstants.SERVER_SCOPE;
}
return scope;

View File

@ -48,8 +48,6 @@ public class TbMsgAttributesNode implements TbNode {
private TbMsgAttributesNodeConfiguration config;
@Override
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
this.config = TbNodeUtils.convert(configuration, TbMsgAttributesNodeConfiguration.class);