fix: destructure and save audioUrl in POST and PUT API routes

This commit is contained in:
mstfyldz
2026-08-16 17:53:24 +03:00
parent 52e6caa901
commit ef220e18c3
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ export async function PUT(
codeLanguage, codeLanguage,
audioDuration, audioDuration,
audioTitle, audioTitle,
audioUrl,
stampedText, stampedText,
} = body; } = body;
@@ -61,6 +62,7 @@ export async function PUT(
codeLanguage, codeLanguage,
audioDuration, audioDuration,
audioTitle, audioTitle,
audioUrl,
stampedText, stampedText,
}, },
}); });
+2
View File
@@ -41,6 +41,7 @@ export async function POST(request: Request) {
codeLanguage, codeLanguage,
audioDuration, audioDuration,
audioTitle, audioTitle,
audioUrl,
stampedText, stampedText,
} = body; } = body;
@@ -65,6 +66,7 @@ export async function POST(request: Request) {
codeLanguage, codeLanguage,
audioDuration, audioDuration,
audioTitle, audioTitle,
audioUrl,
stampedText, stampedText,
}, },
}); });