Sfoglia il codice sorgente

add state and bind

kaori 5 anni fa
parent
commit
819bd778c6
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      src/server/service/bolt.js

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

@@ -57,6 +57,12 @@ const { WebClient, LogLevel } = require('@slack/web-api');
 class BoltService {
 
   constructor(crowi) {
+
+    this.state = {
+      pagenationOffset: 0,
+    };
+
+    this.getSearchResultPaths = this.getSearchResultPaths.bind(this);
     this.crowi = crowi;
     this.receiver = new BoltReciever();