gemercheung %!s(int64=2) %!d(string=hai) anos
pai
achega
efcaa41c60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/room/room.service.ts

+ 1 - 1
src/room/room.service.ts

@@ -105,7 +105,7 @@ export class RoomService {
   ): Promise<void> {
     const user = this.initUserProfile(userInfo);
     const exist = await this.userService.getUsersBy(user.RoomId, user.UserId);
-    if ('IsAssistant' in exist) {
+    if (exist && 'IsAssistant' in exist) {
       user.IsAssistant = exist.IsAssistant;
     }
     this._userInfo = user;