Skip to content

Commit

Permalink
Fixed TaskRepository.getList so it returns a list instead of a single…
Browse files Browse the repository at this point in the history
… task
  • Loading branch information
jongpie authored Feb 16, 2017
1 parent dad67a4 commit 891a4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/TaskRepository.cls
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public without sharing class TaskRepository extends SObjectRepository {
return (Task)Database.query(query)[0];
}

public Task getList(List<Id> taskIdList) {
public List<Task> getList(List<Id> taskIdList) {
String query = this
.addConditionIdIn(taskIdList)
.setAsUpdate(true)
.getQuery();

return (Task)Database.query(query)[0];
return (List<Task>)Database.query(query);
}

public List<Task> getListOfOpenByWhoId(Id whoId) {
Expand Down

0 comments on commit 891a4ad

Please sign in to comment.