Fix[WorkerFilter]: Fixed filter #3394

Merged
jon merged 1 commits from Fix-WorkerFilterLimit into dev 2025-01-29 11:03:15 +00:00
1 changed files with 5 additions and 6 deletions

View File

@ -166,12 +166,11 @@ module.exports = Self => {
LEFT JOIN account.emailUser eu ON eu.userFk = u.id` LEFT JOIN account.emailUser eu ON eu.userFk = u.id`
); );
stmt.merge(conn.makeWhere(filter.where)); stmt.merge(conn.makeSuffix(filter));
stmts.push(stmt); let itemsIndex = stmts.push(stmt) - 1;
const itemsIndex = stmts.push(stmt) - 1; let sql = ParameterizedSQL.join(stmts, ';');
const sql = ParameterizedSQL.join(stmts, ';'); let result = await conn.executeStmt(sql);
const result = await conn.executeStmt(sql, myOptions); return itemsIndex === 0 ? result : result[itemsIndex];
return result[itemsIndex];
}; };
}; };