fix(automation): remove silent JSON.parse fallback in executeAutomationAction
This commit is contained in:
1 parent
a612ea7bea
commit
1a57622849
1 file changed
+1
-7
@@ -38,13 +38,7 @@ export function executeAutomationAction(
|
||||
const { db, logger, emitEvent, publishDomainChanged, wakeAgentIfPossible } = deps;
|
||||
const { handleTaskCreated, handleApprovalResolved, handleTaskStatusChange } = callbacks;
|
||||
|
||||
const config = (() => {
|
||||
try {
|
||||
return JSON.parse(rule.actionConfigJson) as Record<string, unknown>;
|
||||
} catch {
|
||||
return {};
|
||||
}
|
||||
})();
|
||||
const config = JSON.parse(rule.actionConfigJson) as Record<string, unknown>;
|
||||
|
||||
switch (rule.action as AutomationAction) {
|
||||
case "assign_task": {
|
||||
|
||||
Reference in new issue
Block a user