Explorar o código

add state and bind

kaori %!s(int64=5) %!d(string=hai) anos
pai
achega
819bd778c6
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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();