|
@ -152,11 +152,12 @@ class Participants extends RedisModel {
|
|
|
let self = this;
|
|
|
let participants_key = RedisModel.makeRedisKey(REDIS_KEYS.SessionParticipants, sessionId);
|
|
|
let user_session_key = RedisModel.makeRedisKey(REDIS_KEYS.UserSessions, userId);
|
|
|
|
|
|
let participants_role_key = RedisModel.makeRedisKey(REDIS_KEYS.SessionParticipantsRole, sessionId);
|
|
|
// 移除会话中的成员信息,用户的Session信息及MySQL中的记录
|
|
|
redis.multi()
|
|
|
.zrem(participants_key, userId)
|
|
|
.zrem(user_session_key, sessionId)
|
|
|
.hdel(participants_role_key,userId)
|
|
|
.execAsync()
|
|
|
.then(function (res) {
|
|
|
self.deleteUserFromMysql(sessionId, userId);
|