Skip to content

Commit

Permalink
Merge pull request #201 from silverstripe/pulls/200-use-injector-for-…
Browse files Browse the repository at this point in the history
…task

MNT Use ::create to allow Injector to replace content review emails sending task
  • Loading branch information
michalkleiner authored Jun 16, 2023
2 parents 27e0f8f + 2e22bd4 commit 9fe83e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/ContentReviewNotificationJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function process()
{
$this->queueNextRun();

$task = new ContentReviewEmails();
$task = ContentReviewEmails::create();
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));

$this->currentStep = 1;
Expand Down

0 comments on commit 9fe83e9

Please sign in to comment.