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

15 lines
500 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);
check(meetingId, String);
check(requesterUserId, String);
2020-04-10 01:01:46 +08:00
updateConnectionStatus(meetingId, requesterUserId, level);
}