This commit is contained in:
Saeed Vaziry
2024-03-24 09:56:34 +01:00
committed by GitHub
parent 884f18db63
commit 4d051330d6
1055 changed files with 14493 additions and 20278 deletions

View File

@ -37,10 +37,6 @@ class Deployment extends AbstractModel
'commit_data' => 'json',
];
protected $appends = [
'commit_id_short',
];
public function site(): BelongsTo
{
return $this->belongsTo(Site::class);
@ -55,13 +51,4 @@ public function log(): BelongsTo
{
return $this->belongsTo(ServerLog::class, 'log_id');
}
public function getCommitIdShortAttribute(): string
{
if ($this->commit_id) {
return substr($this->commit_id, 0, 7);
}
return '';
}
}