mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-09 12:17:24 +02:00
refactor: break long line
This commit is contained in:
@@ -83,7 +83,9 @@ module.exports = function (module) {
|
|||||||
if (!utils.isNumber(item[1])) {
|
if (!utils.isNumber(item[1])) {
|
||||||
throw new Error(`[[error:invalid-score, ${item[1]}]]`);
|
throw new Error(`[[error:invalid-score, ${item[1]}]]`);
|
||||||
}
|
}
|
||||||
bulk.find({ _key: item[0], value: String(item[2]) }).upsert().updateOne({ $set: { score: parseFloat(item[1]) } });
|
bulk.find({ _key: item[0], value: String(item[2]) })
|
||||||
|
.upsert()
|
||||||
|
.updateOne({ $set: { score: parseFloat(item[1]) } });
|
||||||
});
|
});
|
||||||
await bulk.execute();
|
await bulk.execute();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user