Merge branch 'fix/backups' into v2

This commit is contained in:
Matthew Penner 2021-08-03 20:40:40 -06:00
commit 38ddcfb0d9
8 changed files with 54 additions and 10 deletions

View file

@ -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.');
}