Refactoring: extract process handling from async job.

This commit is contained in:
Joao Patricio 2023-03-21 10:39:44 +00:00
parent 29fb40bd16
commit 0d3b493a76
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
namespace App\Actions\RemoteProcess;
use App\Data\RemoteProcessArgs;
use App\Jobs\ExecuteCoolifyProcess;
use App\Jobs\ExecuteRemoteProcess;
use Spatie\Activitylog\Models\Activity;
class DispatchRemoteProcess
@ -18,7 +18,7 @@ public function __construct(RemoteProcessArgs $remoteProcessArgs){
public function __invoke(): Activity
{
$job = new ExecuteCoolifyProcess($this->activity);
$job = new ExecuteRemoteProcess($this->activity);
dispatch($job);

View File

@ -10,7 +10,7 @@
use Illuminate\Queue\SerializesModels;
use Spatie\Activitylog\Models\Activity;
class ExecuteCoolifyProcess implements ShouldQueue
class ExecuteRemoteProcess implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;