File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,14 @@ module.exports = function (RED) {
4242 function verifyInputs ( node , msg , config ) {
4343 // workspaceid can be either configured in the node,
4444 // or sent into msg.params.workspace_id
45- if ( ! config . workspaceid || config . workspaceid !== '' ) {
45+ if ( config . workspaceid && config . workspaceid ) {
4646 node . workspaceid = config . workspaceid ;
47+ console . log ( 'node.workspaceid' , node . workspaceid ) ;
4748 return true ;
48- } else if ( ! msg . params || msg . params . workspace_id !== '' ) {
49+ }
50+ if ( msg . params && msg . params . workspace_id ) {
4951 node . workspaceid = msg . params . workspace_id ;
52+ console . log ( 'node.workspaceid' , node . workspaceid ) ;
5053 return true ;
5154 }
5255 node . error ( 'Missing workspace_id. check node documentation.' , msg ) ;
You can’t perform that action at this time.
0 commit comments