Skip to content

Commit

Permalink
Update ManageHostingSubscriptionBackups.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 25, 2024
1 parent b97ff2e commit 15effd1
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ public function infolist(Infolist $infolist): Infolist
public function table(Table $table): Table
{

$findHostingSubscription = HostingSubscriptionBackup::where('hosting_subscription_id', $this->record->id)
->where('status', 'processing')
->get();
if ($findHostingSubscription->count() > 0) {
foreach ($findHostingSubscription as $backup) {
$backup->checkBackup();
}
}

return $table
->recordTitleAttribute('id')
->columns([
Expand Down

0 comments on commit 15effd1

Please sign in to comment.