Skip to content

Commit

Permalink
Remove list
Browse files Browse the repository at this point in the history
  • Loading branch information
raac09 committed Oct 6, 2022
1 parent 33b3109 commit e909cb3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ public without sharing class CourseDeleteContactBatch_Batch implements Database.

List<Contact> contactsForDeletion = [SELECT Id FROM Contact WHERE Id IN :contactsMayBeDeleted AND IsPersonAccount = false];

List<Contact> contactsToDelete = CourseDeleteContactBatch.courseDeleteContact(scope);
recordsToDelete = contactsForDeletion.size();

recordsToDelete = contactsToDelete.size();

Delete contactsToDelete;
Delete contactsForDeletion;
}

public void finish(Database.BatchableContext bc){
Expand Down

0 comments on commit e909cb3

Please sign in to comment.