bigbluebutton-Github/bigbluebutton-html5/imports/api/timer/server/methods/timerEnded.js

16 lines
444 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import updateTimer from '/imports/api/timer/server/modifiers/updateTimer';
import { extractCredentials } from '/imports/api/common/server/helpers';
export default function timerEnded() {
const { meetingId, requesterUserId } = extractCredentials(this.userId);
check(meetingId, String);
check(requesterUserId, String);
updateTimer({
action: 'ended',
meetingId,
requesterUserId,
});
}