feat: remove duped zadds, these are already in topics.onNewPostMade

This commit is contained in:
Barış Soner Uşaklı
2019-06-24 23:05:56 -04:00
parent f8a7cf7378
commit cb51c239f2
2 changed files with 2 additions and 14 deletions

View File

@@ -83,11 +83,6 @@ module.exports = function (db, module) {
data.forEach(function (item) {
bulk.find({ _key: item[0], value: String(item[2]) }).upsert().updateOne({ $set: { score: parseFloat(item[1]) } });
});
bulk.execute(function (err) {
if (err) {
console.log(data);
}
callback(err);
});
bulk.execute(err => callback(err));
};
};