From fe68b5f2cd6636128984ed028b6006dbd77bc38c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Viguier?= Date: Thu, 14 Nov 2024 11:49:41 +0100 Subject: [PATCH] fix 422 when opening frame in smart-album (#2683) --- app/Http/Requests/Frame/FrameRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)], ]; }