From 36fea8e067a04dcb9144d9f4b98e38fd8e05dc0e Mon Sep 17 00:00:00 2001 From: Greg Rickaby Date: Mon, 29 Jan 2024 09:19:16 -0600 Subject: [PATCH] use config --- app/api/search/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/search/route.ts b/app/api/search/route.ts index f41d05e2..adb4bd09 100644 --- a/app/api/search/route.ts +++ b/app/api/search/route.ts @@ -76,7 +76,7 @@ export async function GET(request: Request) { // Attempt to fetch subreddits. const response = await fetch( - `https://oauth.reddit.com/api/subreddit_autocomplete_v2?query=${term}&limit=10&include_over_18=true&include_profiles=true&typeahead_active=true&search_query_id=${deviceId}`, + `https://oauth.reddit.com/api/subreddit_autocomplete_v2?query=${term}&limit=10&include_over_18=true&include_profiles=true&typeahead_active=true&search_query_id=${config.deviceId}`, { headers: { authorization: `Bearer ${token.access_token}`