rename instance settings
This commit is contained in:
@@ -6,7 +6,7 @@ use App\Actions\RemoteProcess\RunRemoteProcess;
|
||||
use App\Data\RemoteProcessArgs;
|
||||
use App\Enums\ActivityTypes;
|
||||
use App\Models\Application;
|
||||
use App\Models\CoolifyInstanceSettings;
|
||||
use App\Models\InstanceSettings;
|
||||
use DateTimeImmutable;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
@@ -77,7 +77,7 @@ class DeployApplicationJob implements ShouldQueue
|
||||
public function handle(): void
|
||||
{
|
||||
try {
|
||||
$coolify_instance_settings = CoolifyInstanceSettings::find(1);
|
||||
$coolify_instance_settings = InstanceSettings::find(0);
|
||||
$this->source = $this->application->source->getMorphClass()::where('id', $this->application->source->id)->first();
|
||||
|
||||
// Get Wildcard Domain
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CoolifyInstanceSettings extends Model
|
||||
class InstanceSettings extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
||||
@@ -52,7 +52,9 @@ class User extends Authenticatable
|
||||
$model->uuid = (string) new Cuid2(7);
|
||||
});
|
||||
}
|
||||
|
||||
public function isRoot() {
|
||||
return $this->id == 0;
|
||||
}
|
||||
public function teams()
|
||||
{
|
||||
return $this->belongsToMany(Team::class);
|
||||
|
||||
Reference in New Issue
Block a user