Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jeshaitan/Scicademy
Browse files Browse the repository at this point in the history
  • Loading branch information
abagh0703 committed Jan 25, 2016
2 parents f0c5a7b + 15326d9 commit 32ee188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 32ee188

Please sign in to comment.