SERVER_SCOPE by default, if not provided in metadata
This commit is contained in:
		
							parent
							
								
									5023d63e59
								
							
						
					
					
						commit
						3bdb7bb5ad
					
				@ -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;
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user