Skip to content

Commit

Permalink
Package creation error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilJeenru01 committed Feb 25, 2025
1 parent 0f45875 commit 54f8822
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion force-app/main/default/classes/EmpiIntegration.cls
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,13 @@ public with sharing class EmpiIntegration {
*/
public static LRA_API_Configuration__c getLRAApiConfiguration(String settingName) {
// Query the custom setting with the specified name and return the record
return [
List<LRA_API_Configuration__c> lraConfigurationRecords = [
SELECT Name, Identifier_Namespace__c, Use_LRA_API__c, UserID__c
FROM LRA_API_Configuration__c
WHERE Name = :settingName
LIMIT 1
];
return lraConfigurationRecords.isEmpty() ? null : lraConfigurationRecords[0];

}
}

0 comments on commit 54f8822

Please sign in to comment.