From ea818e2af8b95228b2c81b9a72d037eaa5fc15fb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 25 Jun 2015 15:15:33 -0400 Subject: [PATCH] closes #3259 --- src/database/mongo/hash.js | 4 ++-- src/posts/edit.js | 17 ++++++++++------- src/socket.io/posts.js | 10 ++++++++++ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/database/mongo/hash.js b/src/database/mongo/hash.js index 65157d8cb9..8a833699f9 100644 --- a/src/database/mongo/hash.js +++ b/src/database/mongo/hash.js @@ -39,14 +39,14 @@ module.exports = function(db, module) { return callback(null, []); } db.collection('objects').find({_key: {$in: keys}}, {_id: 0}).toArray(function(err, data) { - if(err) { + if (err) { return callback(err); } var map = helpers.toMap(data); var returnData = []; - for(var i=0; i