mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
deployments
This commit is contained in:
1 parent
59f631e1d4
commit
327b7769f3
3 files changed
+80
-23
No files matched your search
@@ -144,9 +144,10 @@ class Application extends BaseModel
|
||||
return $this->morphMany(LocalPersistentVolume::class, 'resource');
|
||||
}
|
||||
|
||||
public function deployments()
|
||||
public function deployments(int $skip = 0, int $take = 10)
|
||||
{
|
||||
return ApplicationDeploymentQueue::where('application_id', $this->id)->orderBy('created_at', 'desc')->get();
|
||||
ray('Skip ' . $skip . ' Take ' . $take);
|
||||
return ApplicationDeploymentQueue::where('application_id', $this->id)->orderBy('created_at', 'desc')->skip($skip)->take($take)->get();
|
||||
}
|
||||
public function get_deployment(string $deployment_uuid)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user