mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
99413b67d8
commit
9e18e7a245
2 changed files with 5 additions and 0 deletions
|
@ -30,6 +30,8 @@ class RunBackup extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
// TODO - Don't run backups parallel
|
||||
return;
|
||||
// Delete backups older than 7 days
|
||||
$findBackupsForDeleting = Backup::where('created_at', '<', now()->subDays(7))->get();
|
||||
foreach ($findBackupsForDeleting as $backup) {
|
||||
|
|
|
@ -31,6 +31,9 @@ class RunHostingSubscriptionsBackup extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
// TODO - Don't run backups parallel
|
||||
return;
|
||||
|
||||
// Delete backups older than 7 days
|
||||
$findBackupsForDeleting = HostingSubscriptionBackup::where('created_at', '<', now()->subDays(7))->get();
|
||||
foreach ($findBackupsForDeleting as $backup) {
|
||||
|
|
Loading…
Reference in a new issue