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);
|
|
|
|
|
2021-03-26 05:22:50 +08:00
|
|
|
check(meetingId, String);
|
|
|
|
check(requesterUserId, String);
|
|
|
|
|
2020-04-10 01:01:46 +08:00
|
|
|
updateConnectionStatus(meetingId, requesterUserId, level);
|
|
|
|
}
|