From 31b7a1312e177777736e0d5a484bfd189fdf71b1 Mon Sep 17 00:00:00 2001 From: pushrbx Date: Tue, 23 Jan 2024 17:33:35 +0000 Subject: [PATCH] fixed media type enums --- app/Enums/AnimeTypeEnum.php | 3 +++ app/Enums/MangaTypeEnum.php | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Enums/AnimeTypeEnum.php b/app/Enums/AnimeTypeEnum.php index c81a0c0..598b17e 100644 --- a/app/Enums/AnimeTypeEnum.php +++ b/app/Enums/AnimeTypeEnum.php @@ -11,6 +11,9 @@ use Spatie\Enum\Laravel\Enum; * @method static self special() * @method static self ona() * @method static self music() + * @method static self cm() + * @method static self pv() + * @method static self tv_special() * * @OA\Schema( * schema="anime_search_query_type", diff --git a/app/Enums/MangaTypeEnum.php b/app/Enums/MangaTypeEnum.php index 8b583d7..06e2932 100644 --- a/app/Enums/MangaTypeEnum.php +++ b/app/Enums/MangaTypeEnum.php @@ -17,7 +17,7 @@ use Spatie\Enum\Laravel\Enum; * schema="manga_search_query_type", * description="Available Manga types", * type="string", - * enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua","one-shot"} + * enum={"manga","novel", "lightnovel", "oneshot","doujin","manhwa","manhua"} * ) */ final class MangaTypeEnum extends Enum @@ -31,8 +31,7 @@ final class MangaTypeEnum extends Enum 'oneshot' => 'One-shot', 'doujin' => 'Doujinshi', 'manhwa' => 'Manhwa', - 'manhua' => 'Manhua', - 'one-shot' => 'One-shot' + 'manhua' => 'Manhua' ]; } }