Taichi Masuyama 4 ani în urmă
părinte
comite
0f11b1910c
1 a modificat fișierele cu 1 adăugiri și 12 ștergeri
  1. 1 12
      packages/slackbot-proxy/src/services/RelationsService.ts

+ 1 - 12
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -26,18 +26,7 @@ export class RelationsService {
   }
 
   async syncSupportedGrowiCommands(relation:Relation): Promise<Relation> {
-    // assure forward compatibility GROWI version <= 4.3.0
-    let res;
-    try {
-      res = await this.getSupportedGrowiCommands(relation);
-    }
-    catch (err) {
-      if (err.response && err.response.status === 403) {
-        // this code runs if GROWI version <= 4.3.0
-        return relation;
-      }
-      throw err;
-    }
+    const res = await this.getSupportedGrowiCommands(relation);
     const { supportedCommandsForBroadcastUse, supportedCommandsForSingleUse } = res.data;
     relation.supportedCommandsForBroadcastUse = supportedCommandsForBroadcastUse;
     relation.supportedCommandsForSingleUse = supportedCommandsForSingleUse;