|
@@ -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;
|