Ver Fonte

throw new err

itizawa há 5 anos atrás
pai
commit
9cf7d0c1ef
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/slackbot-proxy/src/controllers/slack.ts

+ 1 - 1
packages/slackbot-proxy/src/controllers/slack.ts

@@ -223,7 +223,7 @@ export class SlackCtrl {
     const relation = await this.relationRepository.findOne({ installation, growiUri });
 
     if (relation == null) {
-      return;
+      throw new Error('Relation is not found');
     }
 
     try {