From 8484cab204707bc627275464125165fd35779080 Mon Sep 17 00:00:00 2001 From: ppinkypeach Date: Thu, 8 Feb 2024 10:47:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/notion/blog/notionPage/uploadBlogToNotion.ts | 4 ---- server/scheduler/sendBlogInfoToSlackChannel.ts | 1 - 2 files changed, 5 deletions(-) diff --git a/server/notion/blog/notionPage/uploadBlogToNotion.ts b/server/notion/blog/notionPage/uploadBlogToNotion.ts index 456ebf6..d3720a7 100644 --- a/server/notion/blog/notionPage/uploadBlogToNotion.ts +++ b/server/notion/blog/notionPage/uploadBlogToNotion.ts @@ -31,13 +31,9 @@ export async function uploadBlogToNotion(blogName: string, blogUrl: string, user } }; - console.log('Notion API 요청:', JSON.stringify(pageCreateRequest, null, 3)); - try { const response = await notion.pages.create(pageCreateRequest); - console.log('Page created with ID:', response.id); const notionPageUrl = `https://www.notion.so/${response.id.replace(/-/g, '')}`; - console.log('Page URL:', notionPageUrl); return { notionUrl: notionPageUrl }; } catch (error) { console.error('Notion API 호출 중 오류 발생:', error); diff --git a/server/scheduler/sendBlogInfoToSlackChannel.ts b/server/scheduler/sendBlogInfoToSlackChannel.ts index abc0bec..5db45d8 100644 --- a/server/scheduler/sendBlogInfoToSlackChannel.ts +++ b/server/scheduler/sendBlogInfoToSlackChannel.ts @@ -7,7 +7,6 @@ import { WebClient } from "@slack/web-api"; const slackClient = new WebClient(process.env.SLACK_BOT_TOKEN); exports.handler = async(event: any) => { - console.log('매주 월요일 오전 9시에 실행되는 스케줄러 시작'); try { const startFilterDate = new Date(); const endFilterDate = new Date();