Skip to content

Node.js based forum software built for the modern web

refactor: break long line

Barış Soner Uşaklı4b503db49701
diff --git a/src/database/mongo/sorted/add.js b/src/database/mongo/sorted/add.js
index bc3a8bc8ec..82539ee8c8 100644
--- a/src/database/mongo/sorted/add.js
+++ b/src/database/mongo/sorted/add.js
@@ -83,7 +83,9 @@ module.exports = function (module) {
if (!utils.isNumber(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();
};