Rename function name to match his functionality
This commit is contained in:
parent
c598270663
commit
2ff45a9d7f
@ -4,7 +4,7 @@ import RedisPubSub from '/imports/startup/server/redis';
|
||||
import Logger from '/imports/startup/server/logger';
|
||||
import Users from '/imports/api/users';
|
||||
import createDummyUser from '../modifiers/createDummyUser';
|
||||
import setConnectionId from '../modifiers/setConnectionId';
|
||||
import setConnectionIdAndAuthToken from '../modifiers/setConnectionIdAndAuthToken';
|
||||
|
||||
export default function validateAuthToken(credentials) {
|
||||
const REDIS_CONFIG = Meteor.settings.private.redis;
|
||||
@ -29,7 +29,7 @@ export default function validateAuthToken(credentials) {
|
||||
createDummyUser(meetingId, requesterUserId, requesterToken);
|
||||
}
|
||||
|
||||
setConnectionId(meetingId, requesterUserId, this.connection.id, requesterToken);
|
||||
setConnectionIdAndAuthToken(meetingId, requesterUserId, this.connection.id, requesterToken);
|
||||
|
||||
const payload = {
|
||||
userId: requesterUserId,
|
||||
|
@ -2,7 +2,7 @@ import { check } from 'meteor/check';
|
||||
import Users from '/imports/api/users';
|
||||
import Logger from '/imports/startup/server/logger';
|
||||
|
||||
export default function setConnectionId(meetingId, userId, connectionId, authToken) {
|
||||
export default function setConnectionIdAndAuthToken(meetingId, userId, connectionId, authToken) {
|
||||
check(meetingId, String);
|
||||
check(userId, String);
|
||||
check(authToken, String);
|
||||
@ -27,7 +27,7 @@ export default function setConnectionId(meetingId, userId, connectionId, authTok
|
||||
}
|
||||
|
||||
if (numChanged) {
|
||||
Logger.info(`Updated connectionId user=${userId} connectionId=${connectionId} meeting=${meetingId}`);
|
||||
Logger.info(`Updated connectionId and authToken user=${userId} connectionId=${connectionId} meeting=${meetingId} authToken=${authToken}`);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user