Skip to content

Commit

Permalink
refactor: 로깅 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinkypeach committed Feb 12, 2024
1 parent ec64bcc commit fefd950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/notion/blog/handler/submitNotionCommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);


});
}
1 change: 1 addition & 0 deletions server/scheduler/sendBlogInfoToSlackChannel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
}
}
Expand Down

0 comments on commit fefd950

Please sign in to comment.