Explorar el Código

throw new err

itizawa hace 5 años
padre
commit
9cf7d0c1ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {