From fefd9505996e7bf33a7a2dc03414325c1074a6dc Mon Sep 17 00:00:00 2001 From: ppinkypeach Date: Mon, 12 Feb 2024 14:42:17 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A1=9C=EA=B9=85=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/notion/blog/handler/submitNotionCommandHandler.ts | 4 +++- server/scheduler/sendBlogInfoToSlackChannel.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/notion/blog/handler/submitNotionCommandHandler.ts b/server/notion/blog/handler/submitNotionCommandHandler.ts index b657d4a..85ab041 100644 --- a/server/notion/blog/handler/submitNotionCommandHandler.ts +++ b/server/notion/blog/handler/submitNotionCommandHandler.ts @@ -4,6 +4,8 @@ import { openSlackModal } from '../notionPage/openSlackModal'; export const submitNotionCommandHandler = (app: App) => { app.command('/제출', async ({ ack, body, client }) => { await ack(); - await openSlackModal(body, client); + openSlackModal(body, client); + + }); } \ No newline at end of file diff --git a/server/scheduler/sendBlogInfoToSlackChannel.ts b/server/scheduler/sendBlogInfoToSlackChannel.ts index 5db45d8..2f24c4f 100644 --- a/server/scheduler/sendBlogInfoToSlackChannel.ts +++ b/server/scheduler/sendBlogInfoToSlackChannel.ts @@ -36,6 +36,7 @@ exports.handler = async(event: any) => { const submitBlogDateKST = convertUTCToKST(new Date(page.created_time)); if(submitBlogDateKST && startFilterDate && endFilterDate && submitBlogDateKST > startFilterDate && submitBlogDateKST < endFilterDate){ + console.log(`블로그이름: ${blogTitle}`); notionData.push({notionTitle, url, creator, blogTitle}); } }