Merge branch 'develop' into v2
This commit is contained in:
commit
4b32828423
7 changed files with 34 additions and 14 deletions
|
@ -135,7 +135,7 @@ class InitiateBackupService
|
|||
|
||||
// Check if the server has reached or exceeded its backup limit.
|
||||
// completed_at == null will cover any ongoing backups, while is_successful == true will cover any completed backups.
|
||||
$successful = $this->getNonFailedBackups($server);
|
||||
$successful = $this->repository->getNonFailedBackups($server);
|
||||
if (!$server->backup_limit || $successful->count() >= $server->backup_limit) {
|
||||
// Do not allow the user to continue if this server is already at its limit and can't override.
|
||||
if (!$override || $server->backup_limit <= 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue