Skip to content

Node.js based forum software built for the modern web

set key as well

barisusaklidf590d01e6f8
diff --git a/src/database/mongo/hash.js b/src/database/mongo/hash.js
index 43460f421c..0766989a2c 100644
--- a/src/database/mongo/hash.js
+++ b/src/database/mongo/hash.js
@@ -10,7 +10,7 @@ module.exports = function(db, module) {
if (!key) {
return callback();
}
-
+ data._key = key;
db.collection('objects').update({_key: key}, {$set: data}, {upsert: true, w: 1}, function(err) {
callback(err);
});