mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
ESlint array-bracket-spacing
and object-property-newline
This commit is contained in:
@@ -56,7 +56,15 @@ module.exports = function (db, module) {
|
||||
$project: {
|
||||
value: 1,
|
||||
score: {
|
||||
$cond: { if: { $eq: [ "$_key", sets[index] ] }, then: { $multiply: [ '$score', weight ] }, else: '$score' },
|
||||
$cond: {
|
||||
if: {
|
||||
$eq: ["$_key", sets[index]],
|
||||
},
|
||||
then: {
|
||||
$multiply: ['$score', weight],
|
||||
},
|
||||
else: '$score',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user