Skip to content

Commit

Permalink
fix 422 when opening frame in smart-album (#2683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria authored Nov 14, 2024
1 parent c513457 commit fe68b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Requests/Frame/FrameRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)],
];
}

Expand Down

0 comments on commit fe68b5f

Please sign in to comment.