kaori 5 лет назад
Родитель
Сommit
39ffd07275
1 измененных файлов с 7 добавлено и 6 удалено
  1. 7 6
      src/server/service/bolt.js

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

@@ -133,10 +133,10 @@ class BoltService {
       body, ack, say, action,
     }) => {
       await ack();
-      // console.log('action.value', action.value);
-      // const intOffset = parseInt(action.value);
-      // const nextResults = this.getNextResults(intOffset);
-      // console.log('nextResults', nextResults);
+      console.log('action.value', action.value);
+      const intOffset = parseInt(action.value);
+      const nextResults = this.getNextResults(intOffset);
+      console.log('nextResults', nextResults);
     });
 
     this.bolt.action('shareSearchResults', async({
@@ -161,8 +161,9 @@ class BoltService {
   }
 
   getNextResults = (offset) => {
-    console.log('offset', offset);
-    // const newOffset = offset + 10;
+    const newOffset = offset + 10;
+    console.log('offset1', newOffset);
+
     // this.getSearchResultPaths(command, args);
     // this.showEphemeralSearchResults();