Browse Source

throw new err

itizawa 4 years ago
parent
commit
9cf7d0c1ef
1 changed files with 1 additions and 1 deletions
  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 });
     const relation = await this.relationRepository.findOne({ installation, growiUri });
 
 
     if (relation == null) {
     if (relation == null) {
-      return;
+      throw new Error('Relation is not found');
     }
     }
 
 
     try {
     try {