From c42488d072ed22cc6756512d6ce337b599f04ab7 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 24 Sep 2022 11:13:16 +0100 Subject: [PATCH] Return success from cleanup job --- api/v3/Job.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Job.php b/api/v3/Job.php index 2b0434144437..0303bc29ccc5 100644 --- a/api/v3/Job.php +++ b/api/v3/Job.php @@ -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); @@ -655,6 +656,8 @@ function civicrm_api3_job_cleanup($params) { if ($wordRplc) { CRM_Core_BAO_WordReplacement::rebuild(); } + + return civicrm_api3_create_success(); } /**