18 lines
533 B
JavaScript
18 lines
533 B
JavaScript
import RedisPubSub from '/imports/startup/server/redis';
|
|
import { extractCredentials } from '/imports/api/common/server/helpers';
|
|
|
|
export default function stopPoll() {
|
|
const { meetingId, requesterUserId: requesterId } = extractCredentials(this.userId);
|
|
const REDIS_CONFIG = Meteor.settings.private.redis;
|
|
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
|
|
const EVENT_NAME = 'StopPollReqMsg';
|
|
|
|
return RedisPubSub.publishUserMessage(
|
|
CHANNEL,
|
|
EVENT_NAME,
|
|
meetingId,
|
|
requesterId,
|
|
({ requesterId }),
|
|
);
|
|
}
|