mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-02 16:29:49 -05:00
refactor: use enums for auth guards, middleware groups, and rate limits
This commit is contained in:
@@ -16,6 +16,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Enums\GlobalRateLimit;
|
||||
use App\Models\TmdbCollection;
|
||||
use App\Models\TmdbCompany;
|
||||
use App\Models\TmdbCredit;
|
||||
@@ -58,7 +59,7 @@ class ProcessMovieJob implements ShouldQueue
|
||||
return [
|
||||
Skip::when(cache()->has("tmdb-movie-scraper:{$this->id}")),
|
||||
new WithoutOverlapping((string) $this->id)->dontRelease()->expireAfter(30),
|
||||
new RateLimited('tmdb'),
|
||||
new RateLimited(GlobalRateLimit::TMDB),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user