formatting
This commit is contained in:
		@@ -55,10 +55,13 @@ class ScheduledTaskJob implements ShouldQueue
 | 
			
		||||
    private function getServerTimezone(): string
 | 
			
		||||
    {
 | 
			
		||||
        if ($this->resource instanceof Application) {
 | 
			
		||||
            return $this->resource->destination->server->settings->server_timezone;
 | 
			
		||||
            $timezone = $this->resource->destination->server->settings->server_timezone;
 | 
			
		||||
            return $timezone;
 | 
			
		||||
        } elseif ($this->resource instanceof Service) {
 | 
			
		||||
            return $this->resource->server->settings->server_timezone;
 | 
			
		||||
            $timezone = $this->resource->server->settings->server_timezone;
 | 
			
		||||
            return $timezone;
 | 
			
		||||
        }
 | 
			
		||||
        return 'UTC';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function middleware(): array
 | 
			
		||||
@@ -135,7 +138,6 @@ class ScheduledTaskJob implements ShouldQueue
 | 
			
		||||
            // send_internal_notification('ScheduledTaskJob failed with: ' . $e->getMessage());
 | 
			
		||||
            throw $e;
 | 
			
		||||
        } finally {
 | 
			
		||||
          
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@@ -38,7 +38,8 @@ class ScheduledTask extends BaseModel
 | 
			
		||||
            $server = $this->application->server;
 | 
			
		||||
            ray('Returning server from application: '.$server);
 | 
			
		||||
            return $server;
 | 
			
		||||
        } elseif ($this->database) {
 | 
			
		||||
        } 
 | 
			
		||||
        elseif ($this->database) {
 | 
			
		||||
            ray('Returning server from database');
 | 
			
		||||
            $server = $this->database->server;
 | 
			
		||||
            ray('Returning server from database: '.$server);
 | 
			
		||||
 
 | 
			
		||||
@@ -8,8 +8,7 @@
 | 
			
		||||
        @forelse($executions as $execution)
 | 
			
		||||
        <form wire:key="{{ data_get($execution, 'id') }}"
 | 
			
		||||
            class="relative flex flex-col p-4 bg-white box-without-bg dark:bg-coolgray-100"
 | 
			
		||||
                    @class([
 | 
			
		||||
                        'border-green-500' => data_get($execution, 'status') === 'success',
 | 
			
		||||
            @class([ 'border-green-500'=> data_get($execution, 'status') === 'success',
 | 
			
		||||
            'border-red-500' => data_get($execution, 'status') === 'failed',
 | 
			
		||||
            ])>
 | 
			
		||||
            @if (data_get($execution, 'status') === 'running')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user