From a6a49065c104fe4f6b0ca647d3f6b73214c6af0b Mon Sep 17 00:00:00 2001 From: tlandegger Date: Wed, 12 Jul 2017 22:18:24 -0400 Subject: [PATCH] update connection bug --- test/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/app.js b/test/app.js index a0c0b50..0b16693 100644 --- a/test/app.js +++ b/test/app.js @@ -7,7 +7,7 @@ app.delete("/api/test/:id", deleteMessage); var connectionString = 'mongodb://127.0.0.1:27017/test'; // for local -if(process.env.MLAB_USERNAME_WEBDEV) { // check if running remotely +if(process.env.MLAB_USER) { // check if running remotely var username = process.env.MLAB_USER; // get from environment var password = process.env.MLAB_PASS; connectionString = 'mongodb://' + username + ':' + password;