backups: default is_successful to false

This commit is contained in:
Matthew Penner 2021-08-03 15:46:08 -06:00
parent b19a1640f0
commit c46131e7ad
8 changed files with 49 additions and 10 deletions

View file

@ -25,7 +25,8 @@ class BackupRepository extends EloquentRepository
return $this->getBuilder()
->withTrashed()
->where('server_id', $server)
->where('is_successful', true)
->whereNull('completed_at')
->orWhere('is_successful', '=', true)
->where('created_at', '>=', Carbon::now()->subSeconds($seconds)->toDateTimeString())
->get()
->toBase();