Răsfoiți Sursa

add state and bind

kaori 5 ani în urmă
părinte
comite
819bd778c6
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  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 {
 class BoltService {
 
 
   constructor(crowi) {
   constructor(crowi) {
+
+    this.state = {
+      pagenationOffset: 0,
+    };
+
+    this.getSearchResultPaths = this.getSearchResultPaths.bind(this);
     this.crowi = crowi;
     this.crowi = crowi;
     this.receiver = new BoltReciever();
     this.receiver = new BoltReciever();