Skip to content
Snippets Groups Projects
Unverified Commit b99cc7f4 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #5923 from MaximKhlobystov/client-logging-error

Fix for the client logging error
parents 53e5a648 57f8d66b
No related branches found
No related tags found
No related merge requests found
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment