Explorar o código

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

Kristian Vos %!s(int64=5) %!d(string=hai) anos
pai
achega
208a0aa206
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);