diff --git a/isacc_messaging/api/isacc_record_creator.py b/isacc_messaging/api/isacc_record_creator.py index 346af7c..fa851cb 100644 --- a/isacc_messaging/api/isacc_record_creator.py +++ b/isacc_messaging/api/isacc_record_creator.py @@ -385,7 +385,7 @@ def execute_requests(self) -> Tuple[List[dict], List[dict]]: try: cr.status = "completed" cr.persist() - comm_status, comm_statusReason = self.process_cr(cr, successes) + comm_status, comm_statusReason = self.process_cr(cr) dispatched_comm = comm.change_status(status=comm_status) audit_entry( f"Updated status of Communication/{comm.id} to {comm_status}", @@ -417,6 +417,6 @@ def execute_requests(self) -> Tuple[List[dict], List[dict]]: return successes, errors - def process_cr(self, cr: CommunicationRequest, successes: list): + def process_cr(self, cr: CommunicationRequest): status, statusReason = self.dispatch_cr(cr=cr) return status, statusReason