bigbluebutton-Github/bigbluebutton-html5/imports/api/connection-status/server/methods/addConnectionStatus.js

12 lines
437 B
JavaScript
Raw Normal View History

2020-04-10 01:01:46 +08:00
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);
}