From 35e29316dfd4dbda0a4e9815eada4861a67274b0 Mon Sep 17 00:00:00 2001 From: -Puter <22245429+puterhimself@users.noreply.github.com> Date: Thu, 16 Jul 2026 13:25:39 +0530 Subject: [PATCH] fix artifact mime parsing build --- src/routes/services.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/services.ts b/src/routes/services.ts index 78e36b9..4d22b5a 100644 --- a/src/routes/services.ts +++ b/src/routes/services.ts @@ -789,7 +789,7 @@ async function proxySocialRequest(req: Request, rest: string, userId: string) { } function artifactExtension(mimeType: string | undefined): string { - const normalized = mimeType?.split(";", 1)[0].trim().toLowerCase(); + const normalized = mimeType?.split(";", 1)[0]?.trim().toLowerCase(); const extensions: Record = { "audio/mpeg": "mp3", "audio/mp3": "mp3",