Fix deleting a backup that is locked and failed; closes #3404
This commit is contained in:
parent
725fc82657
commit
d049839ffc
4 changed files with 141 additions and 11 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Database\Factories;
|
||||
|
||||
use Ramsey\Uuid\Uuid;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Pterodactyl\Models\Backup;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
|
@ -22,9 +23,11 @@ class BackupFactory extends Factory
|
|||
{
|
||||
return [
|
||||
'uuid' => Uuid::uuid4()->toString(),
|
||||
'is_successful' => true,
|
||||
'name' => $this->faker->sentence,
|
||||
'disk' => Backup::ADAPTER_WINGS,
|
||||
'is_successful' => true,
|
||||
'created_at' => CarbonImmutable::now(),
|
||||
'completed_at' => CarbonImmutable::now(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue