fix: seprate two jobs
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use App\Models\Reminder;
|
use App\Models\Reminder;
|
||||||
use App\Jobs\SendPushJob;
|
use App\Jobs\SendPushJob;
|
||||||
|
use App\Jobs\SendPushToPackageJob;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
|
|
||||||
class SendDueReminders extends Command
|
class SendDueReminders extends Command
|
||||||
@@ -76,7 +77,7 @@ public function handle(): int
|
|||||||
|
|
||||||
if (!$fcmToken) continue;
|
if (!$fcmToken) continue;
|
||||||
|
|
||||||
SendPushJob::dispatch(
|
SendPushToPackageJob::dispatch(
|
||||||
user: $user,
|
user: $user,
|
||||||
title: $reminder->title,
|
title: $reminder->title,
|
||||||
packageName: $packageName,
|
packageName: $packageName,
|
||||||
|
|||||||
Reference in New Issue
Block a user