From 7648bdaa8cbe42a90f05865f8c555c9a3911af9b Mon Sep 17 00:00:00 2001 From: Dhravya Date: Fri, 12 Apr 2024 23:56:54 -0700 Subject: [PATCH] aaaaaaaaaaaaa --- apps/cf-ai-backend/src/routes/queue.ts | 2 ++ apps/extension/src/util.ts | 2 +- apps/web/src/app/api/addTweetsToDb/route.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/cf-ai-backend/src/routes/queue.ts b/apps/cf-ai-backend/src/routes/queue.ts index 5368543d..c00afb5b 100644 --- a/apps/cf-ai-backend/src/routes/queue.ts +++ b/apps/cf-ai-backend/src/routes/queue.ts @@ -75,6 +75,8 @@ export const queue = async (batch: MessageBatch, env: Env): Promise => { }, ); + console.log(token); + const res = await fetch('https://supermemory.dhr.wtf/api/addTweetsToDb', { method: 'POST', headers: { diff --git a/apps/extension/src/util.ts b/apps/extension/src/util.ts index 0b73b6c8..d2ea35d3 100644 --- a/apps/extension/src/util.ts +++ b/apps/extension/src/util.ts @@ -9,5 +9,5 @@ export const getEnv = () => { // }) // return null - return "development"; + return "production"; }; diff --git a/apps/web/src/app/api/addTweetsToDb/route.ts b/apps/web/src/app/api/addTweetsToDb/route.ts index aba63267..7fe2edba 100644 --- a/apps/web/src/app/api/addTweetsToDb/route.ts +++ b/apps/web/src/app/api/addTweetsToDb/route.ts @@ -23,7 +23,7 @@ export async function POST(req: NextRequest) { if (!token) { return new Response( - JSON.stringify({ message: "Invalid Key, session not found." }), + JSON.stringify({ message: "Invalid Key, TOKEN not found." }), { status: 404 }, ); }