fix: flipped comparison for agent name test

This commit is contained in:
Victor Westerlund 2025-10-14 10:35:17 +02:00
parent 660d67effb
commit c8e1f5c928
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -136,7 +136,7 @@ class FreshdeskFilters {
// Check if this ticket is assigned to this agent
const isCurrentAgent = await CONFIG.get(CONFIG.AGENT_NAME_REGEX) !== "true"
// An agent name is explicitly defined
? ticketAgentName !== agentName
? ticketAgentName === agentName
// Agent name(s) are defined with RegEx
: new RegExp(agentName).test(ticketAgentName);