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

12 lines
439 B
JavaScript
Raw Normal View History

2023-05-11 04:03:20 +08:00
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 deactivateTimer() {
const { meetingId, requesterUserId } = extractCredentials(this.userId);
2023-05-11 04:03:20 +08:00
check(meetingId, String);
check(requesterUserId, String);
2023-05-11 04:03:20 +08:00
updateTimer({ action: 'deactivate', meetingId, requesterUserId });
2023-05-11 04:03:20 +08:00
}