Skip to content

Commit 6e0a3a0

Browse files
committed
fix var names
1 parent e022bc1 commit 6e0a3a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

force-app/nom/classes/NOM_OrgEnhetHelper.cls

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ public with sharing class NOM_OrgEnhetHelper implements Callable {
1717
'Bad argument for method getLederForEnhetIds, should be type of String.'
1818
);
1919
}
20-
when 'getOfficeUnitForNavIdent' {
21-
if (args.keySet().contains('navIdent') && (args.get('navIdent') instanceof String)) {
22-
return getOfficeUnitForNavIdent((String) args.get('navIdent'));
20+
when 'getOfficeUnitForNavId' {
21+
if (args.keySet().contains('navId') && (args.get('navId') instanceof String)) {
22+
return getOfficeUnitForNavIdent((String) args.get('navId'));
2323
}
2424
throw new NomIntHelperMalformedCallException(
25-
'Bad argument for method getOfficeUnitForNavIdent, should be type of String.'
25+
'Bad argument for method getOfficeUnitForNavId, should be type of String.'
2626
);
2727
}
2828
when else {
@@ -588,7 +588,7 @@ public with sharing class NOM_OrgEnhetHelper implements Callable {
588588
)
589589
)
590590
),
591-
(Object) new Map<String, Object>{ navId.getName() => navIdent }
591+
(Object) new Map<String, String>{ navId.getName() => navIdent }
592592
);
593593
return query.build();
594594
}

0 commit comments

Comments
 (0)