Skip to content

Commit

Permalink
Updated to latest bodytrack-datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbartley committed Sep 22, 2014
1 parent 8932f24 commit a6230ee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
33 changes: 16 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name" : "node-datastore-grapher",
"version" : "1.2.0",
"author" : {
"name" : "Chris Bartley",
"email" : "[email protected]"
},
"private" : true,
"scripts" : {
"start" : "node app.js"
},
"dependencies" : {
"express" : "3.3.4",
"hjs" : "*",
"temp" : "*",
"bodytrack-datastore" : "0.1.0"
}
}
"name": "node-datastore-grapher",
"version": "1.3.0",
"author": {
"name": "Chris Bartley",
"email": "[email protected]"
},
"private": true,
"scripts": {
"start": "node app.js"
},
"dependencies": {
"bodytrack-datastore": "^1.0.1",
"express": "3.3.4",
"hjs": "*",
"temp": "*"
}}
6 changes: 3 additions & 3 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ exports.index = function(req, res) {

console.log("userId: " + userId);

datastore.getInfo(userId,
datastore.getInfo({userId : userId},
function(err, infoResponse) {

console.log("INFO RESPONSE: " + JSON.stringify(infoResponse, null, 3));
Expand Down Expand Up @@ -182,7 +182,7 @@ exports.multigrapher = function(req, res) {
return item.trim()
});

datastore.getInfo(userId,
datastore.getInfo({userId : req.params.uid},
function(err, infoResponse) {

var sources = createSources(infoResponse);
Expand Down Expand Up @@ -237,7 +237,7 @@ exports.multigrapher = function(req, res) {
};

exports.listSources = function(req, res) {
datastore.getInfo(req.params.uid,
datastore.getInfo({userId : req.params.uid},
function(err, infoResponse) {
if (err) {
// TODO: do something better
Expand Down

0 comments on commit a6230ee

Please sign in to comment.