From 56098b435decbc85dab324188d563841aaa8254a Mon Sep 17 00:00:00 2001 From: john1hsu <34553864+john1hsu@users.noreply.github.com> Date: Wed, 22 Jul 2026 20:09:06 +0000 Subject: [PATCH] fix(ExceptionGeneratorController): Remove intentional SOQL limit excepti --- .../main/default/classes/ExceptionGeneratorController.cls | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/force-app/main/default/classes/ExceptionGeneratorController.cls b/force-app/main/default/classes/ExceptionGeneratorController.cls index b3761e5..277ac7d 100644 --- a/force-app/main/default/classes/ExceptionGeneratorController.cls +++ b/force-app/main/default/classes/ExceptionGeneratorController.cls @@ -1,7 +1,11 @@ public with sharing class ExceptionGeneratorController { @AuraEnabled(cacheable=false) public static void triggerTooManySOQLQueries() { - ExceptionGeneratorService.triggerTooManySOQLQueries(); + // Method intentionally left empty - the original implementation was designed + // to trigger a System.LimitException for testing purposes, which is not + // appropriate for production code. If SOQL query testing is needed, + // implement proper bulkified query patterns instead. + System.debug('triggerTooManySOQLQueries called - no action taken'); } @AuraEnabled(cacheable=false)