File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -1050,7 +1050,12 @@ module.exports = function (RED) {
10501050 username = sUsername || this . credentials . username ;
10511051 password = sPassword || this . credentials . password || config . password ;
10521052 apikey = sApikey || this . credentials . apikey || config . apikey ;
1053-
1053+ endpoint = sEndpoint ;
1054+
1055+ if ( config [ 'cwm-service-endpoint' ] ) {
1056+ endpoint = config [ 'cwm-service-endpoint' ] ;
1057+ }
1058+
10541059 // All method to be overridden
10551060 if ( msg . params ) {
10561061 if ( msg . params . method ) {
@@ -1068,10 +1073,9 @@ module.exports = function (RED) {
10681073 if ( msg . params . version ) {
10691074 version = msg . params . version ;
10701075 }
1071- }
1072- endpoint = sEndpoint ;
1073- if ( config [ 'cwm-service-endpoint' ] ) {
1074- endpoint = config [ 'cwm-service-endpoint' ] ;
1076+ if ( msg . params . endpoint ) {
1077+ endpoint = msg . params . endpoint ;
1078+ }
10751079 }
10761080
10771081 node . status ( { } ) ;
You can’t perform that action at this time.
0 commit comments