Skip to content

Commit

Permalink
change of function name
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsmc committed May 4, 2018
1 parent 567b621 commit 4b02429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/command_line_client/common_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function issue_request_to_update_db($sis) {
});
}

function connect_create_collection_insert(data, responseHandler) {
function upsert_mongodb(data, responseHandler) {
console.log("connect_create_collection_insert");
var mongo = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/tempdb";
Expand All @@ -187,7 +187,7 @@ function issue_request_to_update_db($sis) {
console.log("making request for data from pi")
issue_get_temp_request().then( function (result) {
console.log("kicking off the insert...")
connect_create_collection_insert(result, responseHandler);
upsert_mongodb(result, responseHandler);
});

return null;
Expand All @@ -201,4 +201,4 @@ if ( typeof(exports) != 'undefined' ) {
exports.update_db = issue_request_to_update_db;
exports.get_db = get_data_from_db;
//exports.get_db
}
}

0 comments on commit 4b02429

Please sign in to comment.