Skip to content

Commit

Permalink
Fix album decorations (#2003)
Browse files Browse the repository at this point in the history
album decoration settings were missing from returned array with config settings
  • Loading branch information
evoludolab authored Sep 4, 2023
1 parent c4202f3 commit 79d105d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Resources/ConfigurationResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use App\DTO\AlbumSortingCriterion;
use App\DTO\PhotoSortingCriterion;
use App\Enum\AlbumDecorationOrientation;
use App\Enum\AlbumDecorationType;
use App\Enum\DefaultAlbumProtectionType;
use App\Enum\ThumbAlbumSubtitleType;
use App\Exceptions\Handler;
Expand Down Expand Up @@ -118,6 +120,8 @@ public function toArray($request): array
],
]),

'album_decoration' => Configs::getValueAsEnum('album_decoration', AlbumDecorationType::class),
'album_decoration_orientation' => Configs::getValueAsEnum('album_decoration_orientation', AlbumDecorationOrientation::class),
'album_subtitle_type' => Configs::getValueAsEnum('album_subtitle_type', ThumbAlbumSubtitleType::class),
'check_for_updates' => Configs::getValueAsBool('check_for_updates'),
'default_album_protection' => Configs::getValueAsEnum('default_album_protection', DefaultAlbumProtectionType::class),
Expand Down

0 comments on commit 79d105d

Please sign in to comment.