bigbluebutton-Github/bigbluebutton-html5/imports/api/connection-status/server/methods/addConnectionStatus.js
2020-05-14 10:32:55 -03:00

12 lines
437 B
JavaScript

import { check } from 'meteor/check';
import updateConnectionStatus from '/imports/api/connection-status/server/modifiers/updateConnectionStatus';
import { extractCredentials } from '/imports/api/common/server/helpers';
export default function addConnectionStatus(level) {
check(level, String);
const { meetingId, requesterUserId } = extractCredentials(this.userId);
updateConnectionStatus(meetingId, requesterUserId, level);
}