rename schemalessAttrributes
This commit is contained in:
@@ -38,7 +38,7 @@ class Deploy extends Component
|
||||
|
||||
queue_application_deployment(
|
||||
application: $this->application,
|
||||
metadata: [
|
||||
extra_attributes: [
|
||||
'deployment_uuid' => $this->deployment_uuid,
|
||||
'application_uuid' => $this->application->uuid,
|
||||
'force_rebuild' => $force,
|
||||
|
||||
@@ -24,7 +24,7 @@ class Rollback extends Component
|
||||
|
||||
queue_application_deployment(
|
||||
application: $this->application,
|
||||
metadata: [
|
||||
extra_attributes: [
|
||||
'deployment_uuid' => $deployment_uuid,
|
||||
'application_uuid' => $this->application->uuid,
|
||||
'force_rebuild' => false,
|
||||
|
||||
@@ -229,9 +229,9 @@ COPY --from={$this->application->uuid}:{$this->git_commit}-build /app/{$this->ap
|
||||
if ($next_found) {
|
||||
dispatch(new ApplicationDeploymentJob(
|
||||
application_deployment_queue_id: $next_found->id,
|
||||
deployment_uuid: $next_found->metadata['deployment_uuid'],
|
||||
application_uuid: $next_found->metadata['application_uuid'],
|
||||
force_rebuild: $next_found->metadata['force_rebuild'],
|
||||
deployment_uuid: $next_found->extra_attributes['deployment_uuid'],
|
||||
application_uuid: $next_found->extra_attributes['application_uuid'],
|
||||
force_rebuild: $next_found->extra_attributes['force_rebuild'],
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,14 +11,14 @@ class ApplicationDeploymentQueue extends Model
|
||||
protected $fillable = [
|
||||
'application_id',
|
||||
'status',
|
||||
'metadata',
|
||||
'extra_attributes',
|
||||
];
|
||||
|
||||
public $casts = [
|
||||
'metadata' => SchemalessAttributes::class,
|
||||
'extra_attributes' => SchemalessAttributes::class,
|
||||
];
|
||||
public function scopeWithExtraAttributes(): Builder
|
||||
{
|
||||
return $this->metadata->modelScope();
|
||||
return $this->extra_attributes->modelScope();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user