feat(v2): candidate pool SQL (admin exclusion preserved, no hard LIMIT 10) + verbatim legacy SQL for shadow mode

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Gustavo
2026-08-24 15:19:39 -03:00
co-authored by Claude Sonnet 5
parent 60015c0972
commit 00bb89f4f4
7 changed files with 137 additions and 1 deletions
@@ -1372,7 +1372,7 @@ ORDER BY tickets_id, date ASC;
`n8n/nodes/build-sql-candidatos.node.js` (assume `parseConfig` já inlined no escopo pelo build script, Task 12):
```js
// @requires logic/config.js
// @requires config.js
const config = parseConfig($env);
const glpiBaseUrl = String($('Config - Coordenador GLPI v2').first().json.glpi_base_url || '').replace(/\/$/, '').replace(/'/g, "''");