mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
refactor: tab rules
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = function (module) {
|
||||
if (params.withScores) {
|
||||
project.score = '$totalScore';
|
||||
}
|
||||
pipeline.push({ $project: project });
|
||||
pipeline.push({ $project: project });
|
||||
|
||||
let data = await module.client.collection('objects').aggregate(pipeline).toArray();
|
||||
if (!params.withScores) {
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = function (module) {
|
||||
});
|
||||
return key.map(k => res.rows.some(r => r.k === k));
|
||||
}
|
||||
const res = await module.pool.query({
|
||||
const res = await module.pool.query({
|
||||
name: 'exists',
|
||||
text: `
|
||||
SELECT EXISTS(SELECT *
|
||||
|
||||
Reference in New Issue
Block a user