Skip to content

Commit

Permalink
PXBF-1575-update-lifeevent-controller: update call to life event cont…
Browse files Browse the repository at this point in the history
…roller
  • Loading branch information
gchi25 committed Aug 6, 2024
1 parent 844a4e2 commit 0be5790
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function usagov_benefit_finder_api_node_delete(Node $node) {
*/
function _usagov_benefit_finder_api_batch_operation_generate_json_data_files($id, $isPublished) {
usleep(500000);
$lifeEventController = new LifeEventController();
$lifeEventController = \Drupal::service('Drupal\usagov_benefit_finder_api\Controller\LifeEventController');
if ($isPublished) {
\Drupal::logger('batch')->error("SAVE $id real JSON datad");
$lifeEventController->mode = "published";
Expand Down

0 comments on commit 0be5790

Please sign in to comment.