recheck validity on tag change

This commit is contained in:
Víctor Losada Hernández
2026-10-30 15:44:29 +01:00
parent 124d03f8c1
commit 15aadc3c0d
2 changed files with 8 additions and 17 deletions
+1 -3
View File
@@ -32,8 +32,6 @@ const rendererConditions = (legacy, v3)=>{
const tagConditions = (tagsAnd, tagsOr, tagsNot) => {
const conditions = {};
console.log(tagsAnd.length, tagsOr.length, tagsNot.length);
if (tagsAnd.length > 0) {
conditions.$and = tagsAnd.map(tag => ({
tags: tag.trim()
@@ -73,7 +71,7 @@ const findBrews = async (req, res)=>{
const sort = req.query.sort || 'title';
const dir = req.query.dir || 'asc';
console.log(`Title: ${title}, Author: ${author}, page: ${page}, count: ${count}, tagsAnd: ${tagsAnd}, tagsOr: ${tagsOr} tagsNot: ${tagsNot}`);
//console.log(`Title: ${title}, Author: ${author}, page: ${page}, count: ${count}, tagsAnd: ${tagsAnd}, tagsOr: ${tagsOr} tagsNot: ${tagsNot}`);
const combinedQuery = {
$and : [