소스 검색

add state and bind

kaori 5 년 전
부모
커밋
819bd778c6
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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();