refactor: tab rules

This commit is contained in:
Barış Soner Uşaklı
2021-11-18 16:42:18 -05:00
parent c26870d227
commit fb363957d1
69 changed files with 128 additions and 175 deletions

View File

@@ -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) {

View File

@@ -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 *