From 38a50d4ad1759853a957eb5ef127d42833b58038 Mon Sep 17 00:00:00 2001 From: Jesse Smith Date: Sun, 24 Jan 2016 18:58:55 -0500 Subject: [PATCH 1/2] string 0 to num 0 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4d9f6538..36739322 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ app.post('/updateUserWithNewPapers', function(req, res) { "_id": ObjectID(req.body.paperIDs[i]) }, { $pull: { - "authors": "0" + "authors": 0 } }, function(err, record) { if (err) From 15326d9f9506bd53f42d60e8d25a5de4cbdd3d1a Mon Sep 17 00:00:00 2001 From: Jesse Smith Date: Sun, 24 Jan 2016 18:59:59 -0500 Subject: [PATCH 2/2] aws keys --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index be927d9b..36739322 100644 --- a/index.js +++ b/index.js @@ -26,8 +26,8 @@ var db = mongojs(uri, ["Papers", "Users"], { var gfs = grid(db, mongojs); aws.config.region = 'us-east-1'; -//aws.config.credentials.accessKeyId = process.env.AWS_ACCESS_KEY_ID; -//aws.config.credentials.secretAccessKey = process.env.AWS_SECRET_ACCESS_KEY; +aws.config.credentials.accessKeyId = process.env.AWS_ACCESS_KEY_ID; +aws.config.credentials.secretAccessKey = process.env.AWS_SECRET_ACCESS_KEY; app.post('/updateUserWithNewPapers', function(req, res) { db.Users.update({