Fix: strictly filter flows by agent UUID to prevent org-level data pollution
This commit is contained in:
1 parent
068435ffb9
commit
0dcedf5d76
2 files changed
+7
-2
No files matched your search
@@ -37,7 +37,8 @@ function fixDates(obj) {
|
||||
async function backoneFetch(endpoint, params = {}, agentUuid = null, siteUuid = null) {
|
||||
if (agentUuid) {
|
||||
const agentId = agentMap[agentUuid];
|
||||
if (agentId) {
|
||||
// Only use filter_agents if agentId is a number or numeric string
|
||||
if (agentId && !isNaN(Number(agentId))) {
|
||||
params.filter_agents = `[${agentId}]`;
|
||||
} else {
|
||||
params.settings_agent = agentUuid;
|
||||
|
||||
Reference in new issue
Block a user