fix: update Facebook API endpoint with cookiePath parameter

This commit is contained in:
2026-01-22 19:57:27 -05:00
parent c937a70db7
commit 1090ad5bfb

View File

@@ -96,7 +96,7 @@ const server = Bun.serve({
const COOKIES_SOURCE = reqUrl.searchParams.get("cookies") || undefined;
try {
const items = await fetchFacebookItems(SEARCH_QUERY, 5, LOCATION, 25, COOKIES_SOURCE);
const items = await fetchFacebookItems(SEARCH_QUERY, 5, LOCATION, 25, COOKIES_SOURCE, "./cookies/facebook.json");
if (!items || items.length === 0)
return Response.json(
{ message: "Search didn't return any results!" },