Skip to content

Commit e63432c

Browse files
committed
fix bug when getting the service config
1 parent c80d166 commit e63432c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

77-cloudant-cf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ module.exports = function(RED) {
268268
}
269269
}
270270
else if (n.service != "") {
271-
var cloudantConfig = cfEnv.getService(n.service);
271+
var cloudantConfig = appEnv.getService(n.service);
272272
if (cloudantConfig) {
273273
return cloudantConfig.credentials.url;
274274
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "node-red-node-cf-cloudant",
3-
"version" : "0.2.6",
3+
"version" : "0.2.7",
44
"description" : "A Node-RED node to access a Cloudant database on Bluemix",
55
"dependencies" : {
66
"cfenv": "1.0.0",

0 commit comments

Comments
 (0)