Skip to content

Commit d71a018

Browse files
committed
Merge pull request #2 from loganm/patch-1
Change Opportunity to Account in newInstance
2 parents 2857bd7 + e48a9d5 commit d71a018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fflib-sample-code/src/classes/AccountsSelector.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public with sharing class AccountsSelector extends fflib_SObjectSelector
3232
{
3333
public static IAccountsSelector newInstance()
3434
{
35-
return (IAccountsSelector) Application.Selector.newInstance(Opportunity.SObjectType);
35+
return (IAccountsSelector) Application.Selector.newInstance(Account.SObjectType);
3636
}
3737

3838
public List<Schema.SObjectField> getSObjectFieldList()
@@ -63,4 +63,4 @@ public with sharing class AccountsSelector extends fflib_SObjectSelector
6363
accountIds.add(opp.AccountId);
6464
return selectById(accountIds);
6565
}
66-
}
66+
}

0 commit comments

Comments
 (0)