diff --git a/app/Http/Requests/Frame/FrameRequest.php b/app/Http/Requests/Frame/FrameRequest.php index e4c0a0f5eed..1691c28722b 100644 --- a/app/Http/Requests/Frame/FrameRequest.php +++ b/app/Http/Requests/Frame/FrameRequest.php @@ -10,7 +10,7 @@ use App\Http\Requests\Traits\HasAbstractAlbumTrait; use App\Models\Configs; use App\Policies\AlbumPolicy; -use App\Rules\RandomIDRule; +use App\Rules\AlbumIDRule; use Illuminate\Support\Facades\Gate; class FrameRequest extends BaseApiRequest implements HasAbstractAlbum @@ -31,7 +31,7 @@ public function authorize(): bool public function rules(): array { return [ - RequestAttribute::ALBUM_ID_ATTRIBUTE => ['sometimes', new RandomIDRule(true)], + RequestAttribute::ALBUM_ID_ATTRIBUTE => ['sometimes', new AlbumIDRule(true)], ]; }