fix(v0/scrape): ensure url is string

This commit is contained in:
Gergő Móricz 2024-09-10 21:18:53 +02:00
parent ad1a6fbc74
commit 83a165db0f

View File

@ -39,7 +39,7 @@ export async function scrapeHelper(
returnCode: number;
}> {
const url = req.body.url;
if (!url) {
if (typeof url !== "string") {
return { success: false, error: "Url is required", returnCode: 400 };
}