fix: boarding again

This commit is contained in:
Andras Bacsai
2023-09-18 14:41:31 +02:00
parent af57b2aa73
commit 9cba0a6df3
7 changed files with 46 additions and 31 deletions

View File

@@ -18,12 +18,14 @@ use Spatie\Activitylog\Contracts\Activity;
function remote_process(
array $command,
Server $server,
string $type = ActivityTypes::INLINE->value,
?string $type = null,
?string $type_uuid = null,
?Model $model = null,
bool $ignore_errors = false,
): Activity {
if (is_null($type)) {
$type = ActivityTypes::INLINE->value;
}
$command_string = implode("\n", $command);
if (auth()->user()) {
$teams = auth()->user()->teams->pluck('id');