Skip to content

Commit 32d99c9

Browse files
authored
Merge pull request pterodactyl#2934 from zKoz210/patch-3
Fix retry after header
2 parents 9f0708f + 421d838 commit 32d99c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/Backups/InitiateBackupService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function handle(Server $server, string $name = null, bool $override = fal
114114
$previous = $this->repository->getBackupsGeneratedDuringTimespan($server->id, $period);
115115
if ($previous->count() >= $limit) {
116116
throw new TooManyRequestsHttpException(
117-
CarbonImmutable::now()->diffInSeconds($previous->last()->created_at->addMinutes(10)),
117+
CarbonImmutable::now()->diffInSeconds($previous->last()->created_at->addSeconds($period)),
118118
sprintf('Only %d backups may be generated within a %d second span of time.', $limit, $period)
119119
);
120120
}

0 commit comments

Comments
 (0)