Skip to content

Commit e91685a

Browse files
committed
fix downloading from smart albums
1 parent 21e4d34 commit e91685a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Requests/Album/ZipRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
use App\Policies\AlbumPolicy;
2525
use App\Policies\PhotoPolicy;
2626
use App\Rules\AlbumIDListRule;
27+
use App\Rules\AlbumIDRule;
2728
use App\Rules\RandomIDListRule;
28-
use App\Rules\RandomIDRule;
2929
use Illuminate\Support\Facades\Gate;
3030
use Illuminate\Validation\Rules\Enum;
3131

@@ -71,7 +71,7 @@ public function rules(): array
7171
RequestAttribute::ALBUM_IDS_ATTRIBUTE => ['sometimes', new AlbumIDListRule()],
7272
RequestAttribute::PHOTO_IDS_ATTRIBUTE => ['sometimes', new RandomIDListRule()],
7373
RequestAttribute::SIZE_VARIANT_ATTRIBUTE => ['required_if_accepted:photos_ids', new Enum(DownloadVariantType::class)],
74-
RequestAttribute::FROM_ID_ATTRIBUTE => ['required_if_accepted:photos_ids', new RandomIDRule(true)],
74+
RequestAttribute::FROM_ID_ATTRIBUTE => ['required_if_accepted:photos_ids', new AlbumIDRule(true)],
7575
];
7676
}
7777

0 commit comments

Comments
 (0)