浏览代码

fix: fixed issue where skipVotes amount was sent as array on join

Kristian Vos 5 年之前
父节点
当前提交
208a0aa206
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      backend/logic/actions/stations.js

+ 1 - 0
backend/logic/actions/stations.js

@@ -366,6 +366,7 @@ module.exports = {
 			},
 
 			(data, next) => {
+				data = JSON.parse(JSON.stringify(data));
 				data.userCount = usersPerStationCount[data._id] || 0;
 				data.users = usersPerStation[data._id] || [];
 				if (!data.currentSong || !data.currentSong.title) return next(null, data);