瀏覽代碼

add await

zahmis 5 年之前
父節點
當前提交
73b23ae255
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/slackbot-proxy/src/services/RecieveService.ts

+ 2 - 2
packages/slackbot-proxy/src/services/RecieveService.ts

@@ -6,11 +6,11 @@ import { parse } from '../../../slack/src/utils/slash-command-parser';
 @Service()
 export class ReceiveService {
 
-  receiveContentsFromSlack(body:SlashCommand) : string {
+  async receiveContentsFromSlack(body:SlashCommand) : Promise<string> {
     const parseBody = parse(body);
 
     if (parseBody.growiCommandType === 'register') {
-      openRegisterModal(body);
+      await openRegisterModal(body);
       return 'register action occurd';
     }