MNT Use ::create to allow Injector to replace content review emails sending task

This commit is contained in:
Michal Kleiner 2023-06-16 11:39:56 +12:00
parent 27e0f8f517
commit 2e22bd4900

View File

@ -93,7 +93,7 @@ class ContentReviewNotificationJob extends AbstractQueuedJob implements QueuedJo
{
$this->queueNextRun();
$task = new ContentReviewEmails();
$task = ContentReviewEmails::create();
$task->run(new HTTPRequest("GET", "/dev/tasks/ContentReviewEmails"));
$this->currentStep = 1;