소스 검색

use generateMarkdownSectionBlock

zahmis 5 년 전
부모
커밋
9f25982ac0
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/server/service/bolt.js

+ 4 - 1
src/server/service/bolt.js

@@ -295,7 +295,10 @@ class BoltService {
         logger.error('Failed to create page in GROWI.');
         client.chat.postMessage({
           channel: body.user.id,
-          text: `*Cannot create new page to existed path*\n contents\n ${view.state.values.contents.contents_input.value}`,
+          blocks: [
+            this.generateMarkdownSectionBlock('*Cannot create new page to existed path*\n contents'),
+            this.generateMarkdownSectionBlock(view.state.values.contents.contents_input.value),
+          ],
         });
       }
     }