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 }, ); }