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)