Skip to content

Commit

Permalink
fix: fixed scheduler command for marketing
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Jan 17, 2025
1 parent 1e463e2 commit 9421019
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Webkul\Marketing\Providers;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\ServiceProvider;
use Webkul\Marketing\Console\Commands\CampaignCommand;

Expand All @@ -13,6 +14,10 @@ class MarketingServiceProvider extends ServiceProvider
public function boot(): void
{
$this->loadMigrationsFrom(__DIR__.'/../Database/Migrations');

$this->callAfterResolving(Schedule::class, function (Schedule $schedule) {
$schedule->command('campaign:process')->everyMinute();
});
}

/**
Expand Down

0 comments on commit 9421019

Please sign in to comment.