mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-11 12:09:26 +00:00
add logic
This commit is contained in:
4 files changed
+97
-44
No files matched your search
@@ -28,4 +28,16 @@ class ScheduledTask extends BaseModel
|
||||
{
|
||||
return $this->hasMany(ScheduledTaskExecution::class);
|
||||
}
|
||||
}
|
||||
|
||||
public function server()
|
||||
{
|
||||
if ($this->application) {
|
||||
return $this->application->server;
|
||||
} elseif ($this->database) {
|
||||
return $this->database->server;
|
||||
} elseif ($this->service) {
|
||||
return $this->service->server;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user