Skip to content

Commit b00086f

Browse files
committed
Rename Engage sync job for clarity
Closes #901
1 parent 6d550bd commit b00086f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.nomad/scripts/poststart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ php artisan scout:import ExpenseReportLine --no-interaction --verbose
77
php artisan scout:import ExternalCommitteeMember --no-interaction --verbose
88
php artisan scout:import User --no-interaction --verbose
99
if [ "$APP_ENV" = "production" ]; then
10-
php artisan job:dispatch SyncEngage --no-interaction --verbose
10+
php artisan job:dispatch SyncEngagePurchaseRequests --no-interaction --verbose
1111
fi
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Psr\Http\Message\ResponseInterface;
2525
use Symfony\Component\HttpFoundation\HeaderUtils;
2626

27-
class SyncEngage implements ShouldBeUnique, ShouldQueue
27+
class SyncEngagePurchaseRequests implements ShouldBeUnique, ShouldQueue
2828
{
2929
use Dispatchable;
3030
use InteractsWithQueue;

app/Nova/Actions/RefreshEngagePurchaseRequests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace App\Nova\Actions;
66

7-
use App\Jobs\SyncEngage;
7+
use App\Jobs\SyncEngagePurchaseRequests;
88
use Illuminate\Support\Collection;
99
use Laravel\Nova\Actions\Action;
1010
use Laravel\Nova\Fields\ActionFields;
@@ -54,7 +54,7 @@ class RefreshEngagePurchaseRequests extends Action
5454
*/
5555
public function handle(ActionFields $fields, Collection $models)
5656
{
57-
SyncEngage::dispatchSync();
57+
SyncEngagePurchaseRequests::dispatchSync();
5858

5959
return Action::message('All Engage requests refreshed!');
6060
}

routes/console.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
use App\Jobs\SyncEngage;
5+
use App\Jobs\SyncEngagePurchaseRequests;
66
use Illuminate\Support\Facades\Schedule;
77
use UKFast\HealthCheck\Commands\CacheSchedulerRunning;
88

@@ -19,4 +19,4 @@
1919

2020
Schedule::command('horizon:snapshot')->everyFiveMinutes();
2121
Schedule::command(CacheSchedulerRunning::class)->everyMinute();
22-
Schedule::job(new SyncEngage())->timezone('America/New_York')->dailyAt('06:00');
22+
Schedule::job(new SyncEngagePurchaseRequests())->timezone('America/New_York')->dailyAt('06:00');

0 commit comments

Comments
 (0)