diff --git a/bigbluebutton-html5/imports/api/log-client/server/methods/logClient.js b/bigbluebutton-html5/imports/api/log-client/server/methods/logClient.js index 21ac0535586904be296fca7507dbc2b516d3c932..ae7d8a3efc67cc242a1dd722d753a0ce7ba5d62b 100755 --- a/bigbluebutton-html5/imports/api/log-client/server/methods/logClient.js +++ b/bigbluebutton-html5/imports/api/log-client/server/methods/logClient.js @@ -1,19 +1,19 @@ import Logger from '/imports/startup/server/logger'; import Users from '/imports/api/users'; -const logClient = function (type, log, ...args) { +const logClient = function (type, log, fullInfo) { const SERVER_CONN_ID = this.connection.id; const User = Users.findOne({ connectionId: SERVER_CONN_ID }); - const logContents = { ...args }; + const logContents = { fullInfo }; if (User) { - if (User.meetingId === args[0].meetingId) { - args[0].validUser = 'vaild'; + if (User.meetingId === fullInfo.credentials.meetingId) { + logContents.validUser = 'valid'; } else { - args[0].validUser = 'invaild'; + logContents.validUser = 'invalid'; } } else { - args[0].validUser = 'notFound'; + logContents.validUser = 'notFound'; } const topic = typeof logContents == 'Object' ? logContents.topic : null;