Track machine counters and maintenance with counter and time intervals
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -9,6 +9,7 @@ use App\Modules\Notifications\Application\UseCases\NotifyAddedPeople;
|
||||
use App\Modules\Notifications\Domain\Contracts\NotificationRepository;
|
||||
use App\Modules\Notifications\Infrastructure\Persistence\Repositories\EloquentNotificationQueries;
|
||||
use App\Modules\Notifications\Infrastructure\Persistence\Repositories\EloquentNotificationRepository;
|
||||
use App\Modules\Notifications\Presentation\Console\NotifyMaintenanceDueCommand;
|
||||
use App\Modules\Notifications\Presentation\Console\NotifyTasksStartingSoonCommand;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
@@ -39,7 +40,7 @@ class NotificationsServiceProvider extends ServiceProvider
|
||||
Event::listen(PeopleAddedToJob::class, fn (PeopleAddedToJob $event) => app(NotifyAddedPeople::class)->forJob($event));
|
||||
|
||||
if ($this->app->runningInConsole()) {
|
||||
$this->commands([NotifyTasksStartingSoonCommand::class]);
|
||||
$this->commands([NotifyTasksStartingSoonCommand::class, NotifyMaintenanceDueCommand::class]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user