rename functions to past tense
This commit is contained in:
parent
30da581d6d
commit
b35b16f642
@ -7,7 +7,7 @@ import handleEmojiStatus from './handlers/emojiStatus';
|
|||||||
import handleGetUsers from './handlers/getUsers';
|
import handleGetUsers from './handlers/getUsers';
|
||||||
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
|
import handleGuestsWaitingForApproval from './handlers/guestsWaitingForApproval';
|
||||||
import handleGuestApproved from './handlers/guestApproved';
|
import handleGuestApproved from './handlers/guestApproved';
|
||||||
import handleKickUser from './handlers/kickUser';
|
import handleUserKicked from './handlers/userKicked';
|
||||||
|
|
||||||
RedisPubSub.on('PresenterAssignedEvtMsg', handlePresenterAssigned);
|
RedisPubSub.on('PresenterAssignedEvtMsg', handlePresenterAssigned);
|
||||||
RedisPubSub.on('UserJoinedMeetingEvtMsg', handleUserJoined);
|
RedisPubSub.on('UserJoinedMeetingEvtMsg', handleUserJoined);
|
||||||
@ -17,4 +17,4 @@ RedisPubSub.on('UserEmojiChangedEvtMsg', handleEmojiStatus);
|
|||||||
RedisPubSub.on('SyncGetUsersMeetingRespMsg', handleGetUsers);
|
RedisPubSub.on('SyncGetUsersMeetingRespMsg', handleGetUsers);
|
||||||
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', handleGuestsWaitingForApproval);
|
RedisPubSub.on('GuestsWaitingForApprovalEvtMsg', handleGuestsWaitingForApproval);
|
||||||
RedisPubSub.on('GuestApprovedEvtMsg', handleGuestApproved);
|
RedisPubSub.on('GuestApprovedEvtMsg', handleGuestApproved);
|
||||||
RedisPubSub.on('UserEjectedFromMeetingEvtMsg', handleKickUser);
|
RedisPubSub.on('UserEjectedFromMeetingEvtMsg', handleUserKicked);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import kickUser from '../modifiers/kickUser';
|
import userKicked from '../modifiers/userKicked';
|
||||||
|
|
||||||
export default function handleKickUser({ header }) {
|
export default function handleKickUser({ header }) {
|
||||||
const { meetingId, userId } = header;
|
const { meetingId, userId } = header;
|
||||||
|
|
||||||
return kickUser(meetingId, userId);
|
return userKicked(meetingId, userId);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user