zahmis před 5 roky
rodič
revize
1dad140e8c
1 změnil soubory, kde provedl 15 přidání a 6 odebrání
  1. 15 6
      src/server/service/bolt.js

+ 15 - 6
src/server/service/bolt.js

@@ -107,13 +107,22 @@ class BoltService {
         await this.client.chat.postEphemeral({
         await this.client.chat.postEphemeral({
           channel: this.channelId,
           channel: this.channelId,
           user: this.userId,
           user: this.userId,
-          blocks: [{
-            type: 'section',
-            text: {
-              type: 'mrkdwn',
-              text: `${resultPaths.join('\n')}`,
+          blocks: [
+            {
+              type: 'section',
+              text: {
+                type: 'mrkdwn',
+                text: '*検索結果 10 件',
+              },
             },
             },
-          }],
+            {
+              type: 'section',
+              text: {
+                type: 'mrkdwn',
+                text: `${resultPaths.join('\n')}`,
+              },
+            },
+          ],
         });
         });
       }
       }
       catch {
       catch {