|
@@ -32,9 +32,10 @@ class LiveroomService extends CrudService {
|
|
|
|
|
|
let list = await this.app.redis.get(`liveroom${number}`);
|
|
|
if (list) {
|
|
|
+ console.log(_.cloneDeep(list));
|
|
|
|
|
|
list = JSON.parse(list);
|
|
|
- list = JSON.stringify(list.push({ name, userid }));
|
|
|
+ list = JSON.stringify(_.uniqBy(list.push({ name, userid }), 'userid'));
|
|
|
} else {
|
|
|
|
|
|
list = JSON.stringify([{ name, userid }]);
|