We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad67a4 commit 891a4adCopy full SHA for 891a4ad
src/classes/TaskRepository.cls
@@ -15,13 +15,13 @@ public without sharing class TaskRepository extends SObjectRepository {
15
return (Task)Database.query(query)[0];
16
}
17
18
- public Task getList(List<Id> taskIdList) {
+ public List<Task> getList(List<Id> taskIdList) {
19
String query = this
20
.addConditionIdIn(taskIdList)
21
.setAsUpdate(true)
22
.getQuery();
23
24
- return (Task)Database.query(query)[0];
+ return (List<Task>)Database.query(query);
25
26
27
public List<Task> getListOfOpenByWhoId(Id whoId) {
0 commit comments