Merge branch 'fix/backups' into v2
This commit is contained in:
commit
38ddcfb0d9
8 changed files with 54 additions and 10 deletions
|
@ -211,7 +211,7 @@ class BackupController extends ClientApiController
|
|||
throw new BadRequestHttpException('This server is not currently in a state that allows for a backup to be restored.');
|
||||
}
|
||||
|
||||
if (!$backup->is_successful && !$backup->completed_at) {
|
||||
if (!$backup->is_successful && is_null($backup->completed_at)) {
|
||||
throw new BadRequestHttpException('This backup cannot be restored at this time: not completed or failed.');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue