fix: update Facebook API endpoint with cookiePath parameter
This commit is contained in:
1 parent
c937a70db7
commit
1090ad5bfb
1 file changed
+1
-1
+1
-1
@@ -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!" },
|
||||
|
||||
Reference in new issue
Block a user