소스 검색

update msg

gemercheung 3 년 전
부모
커밋
c35a84dc55
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/controller/room/assistant.js

+ 5 - 1
src/controller/room/assistant.js

@@ -476,7 +476,11 @@ export class RoomAssistant {
    */
 
   async sendMessage(roomId, user, msg) {
-    await createMessage(roomId, user, msg);
+    try {
+      await createMessage(roomId, user, msg);
+    } catch (error) {
+      console.log("error", sendMessage);
+    }
   }
 
   // 主动断开