File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ public function setIgnoredFiles(?array $ignored)
109109 */
110110 public function handle (Server $ server , string $ name = null , bool $ override = false ): Backup
111111 {
112- /* $previous = $this->repository->getBackupsGeneratedDuringTimespan($server->id, 10);
112+ $ previous = $ this ->repository ->getBackupsGeneratedDuringTimespan ($ server ->id , 10 );
113113 if ($ previous ->count () >= 2 ) {
114114 throw new TooManyRequestsHttpException (
115115 CarbonImmutable::now ()->diffInSeconds ($ previous ->last ()->created_at ->addMinutes (10 )),
116116 'Only two backups may be generated within a 10 minute span of time. '
117117 );
118- }*/
118+ }
119119
120120 // Check if the server has reached or exceeded it's backup limit
121121 if (!$ server ->backup_limit || $ server ->backups ()->where ('is_successful ' , true )->count () >= $ server ->backup_limit ) {
You can’t perform that action at this time.
0 commit comments