diff options
| author | Kush Thaker <[email protected]> | 2024-08-08 01:09:57 +0530 |
|---|---|---|
| committer | Kush Thaker <[email protected]> | 2024-08-08 01:09:57 +0530 |
| commit | 8e893131de5c764f07685e2200a7c239c77e8920 (patch) | |
| tree | f55d22417f6186a49a7b47013a29b72bc3fd59e3 /apps/cf-ai-backend/src/queueConsumer | |
| parent | fix sapces; fix incorrect title for memory sources (diff) | |
| download | supermemory-8e893131de5c764f07685e2200a7c239c77e8920.tar.xz supermemory-8e893131de5c764f07685e2200a7c239c77e8920.zip | |
remove unwanted console logs
Diffstat (limited to 'apps/cf-ai-backend/src/queueConsumer')
| -rw-r--r-- | apps/cf-ai-backend/src/queueConsumer/index.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/cf-ai-backend/src/queueConsumer/index.ts b/apps/cf-ai-backend/src/queueConsumer/index.ts index 538eaff7..b6338a1a 100644 --- a/apps/cf-ai-backend/src/queueConsumer/index.ts +++ b/apps/cf-ai-backend/src/queueConsumer/index.ts @@ -58,7 +58,6 @@ export async function queue( const db = database(env); for (let message of batch.messages) { - const body = message.body; const type = body.type; @@ -167,7 +166,6 @@ export async function queue( } case "tweet": { - const tweet = await getTweetData(body.content.split("/").pop()); const thread = await getThreadData({ @@ -186,11 +184,10 @@ export async function queue( image: tweet.value.user.profile_image_url_https, title: `Tweet by ${tweet.value.user.name}`, }; - console.log("this is the tweet metadata", metadata.title); + if (isErr(thread)) { console.log("Thread worker is down!"); vectorData = JSON.stringify(pageContent); - console.log(vectorData); console.error(thread.error); } else { console.log("thread worker is fine"); |