Skip to content

Commit

Permalink
Merge pull request #24604 from braders/cleanup-job-return-success
Browse files Browse the repository at this point in the history
Return success from cleanup job
  • Loading branch information
eileenmcnaughton authored Sep 26, 2022
2 parents 817311f + c42488d commit 2ad3657
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v3/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ function civicrm_api3_job_run_payment_cron($params) {
*
* @param array $params
* Sends in various config parameters to decide what needs to be cleaned.
* @return array
*/
function civicrm_api3_job_cleanup($params) {
$session = CRM_Utils_Array::value('session', $params, TRUE);
Expand Down Expand Up @@ -655,6 +656,8 @@ function civicrm_api3_job_cleanup($params) {
if ($wordRplc) {
CRM_Core_BAO_WordReplacement::rebuild();
}

return civicrm_api3_create_success();
}

/**
Expand Down

0 comments on commit 2ad3657

Please sign in to comment.