File events refactoring
This commit is contained in:
@@ -22,7 +22,7 @@ class ProjectDailySummarySubscriber extends BaseSubscriber implements EventSubsc
|
||||
|
||||
public function execute(TaskEvent $event)
|
||||
{
|
||||
if (isset($event['project_id']) && !$this->isExecuted()) {
|
||||
if (isset($event['project_id'])) {
|
||||
$this->logger->debug('Subscriber executed: '.__METHOD__);
|
||||
$this->queueManager->push(ProjectMetricJob::getInstance($this->container)->withParams($event['project_id']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user