mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update ProcessHostingSubscriptionBackup.php
This commit is contained in:
parent
b77f0ad0ff
commit
6e18fb4513
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ class ProcessHostingSubscriptionBackup implements ShouldQueue
|
|||
$findHostingSubscriptionBackup = HostingSubscriptionBackup::where('id', $this->id)->first();
|
||||
if ($findHostingSubscriptionBackup) {
|
||||
|
||||
if ($findHostingSubscriptionBackup->status == BackupStatus::Pending) {
|
||||
$findHostingSubscriptionBackup->startBackup();
|
||||
}
|
||||
|
||||
for ($i = 0; $i < 200; $i++) {
|
||||
echo "Check: ".$i." | Checking backup status...\n";
|
||||
$findHostingSubscriptionBackup->checkBackup();
|
||||
|
|
Loading…
Reference in a new issue