From ec7c431d102b441f18cefa46399bdee8d3cf96ce Mon Sep 17 00:00:00 2001 From: Sargam Date: Fri, 22 Nov 2024 01:35:39 +0530 Subject: [PATCH] fallback to video from appx (#1575) --- src/app/api/admin/content/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/admin/content/route.ts b/src/app/api/admin/content/route.ts index 28d57d17..acd30502 100644 --- a/src/app/api/admin/content/route.ts +++ b/src/app/api/admin/content/route.ts @@ -79,7 +79,7 @@ export const POST = async (req: NextRequest) => { const content = await db.content.create({ data: { - type, + type: type === 'appx' ? 'video' : type, title, parentId: parentContentId, thumbnail,