From 2e22bd490038a6cc514f4a4152abd0d07135d320 Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Fri, 16 Jun 2023 11:39:56 +1200 Subject: [PATCH] MNT Use ::create to allow Injector to replace content review emails sending task --- src/Jobs/ContentReviewNotificationJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jobs/ContentReviewNotificationJob.php b/src/Jobs/ContentReviewNotificationJob.php index 3d961d0..a558952 100644 --- a/src/Jobs/ContentReviewNotificationJob.php +++ b/src/Jobs/ContentReviewNotificationJob.php @@ -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;