This commit is contained in:
Andras Bacsai committed 2023-03-29 15:47:56 +02:00
1 parent 7e47fdf52f
commit 7c9506c96d
3 files changed
+65 -7

No files matched your search

@@ -3,6 +3,7 @@
namespace App\Actions\RemoteProcess;
use App\Data\RemoteProcessArgs;
use App\Jobs\DeployRemoteProcess;
use App\Jobs\ExecuteRemoteProcess;
use Spatie\Activitylog\Models\Activity;
@@ -30,11 +31,8 @@ class DispatchRemoteProcess
public function __invoke(): Activity
{
$job = new ExecuteRemoteProcess($this->activity);
dispatch($job);
$this->activity->refresh();
return $this->activity;
}
}