bigbluebutton-Github/bigbluebutton-html5/imports/api/pads/server/handlers/captureSharedNotes.js

23 lines
467 B
JavaScript
Raw Normal View History

2022-09-25 04:59:29 +08:00
import { check } from 'meteor/check';
import padCapture from '../methods/padCapture';
export default async function captureSharedNotes({ header, body }) {
2022-12-10 06:48:04 +08:00
check(header, Object);
2022-09-25 04:59:29 +08:00
check(body, Object);
2022-12-10 06:48:04 +08:00
const {
meetingId: parentMeetingId,
} = header;
const {
breakoutId,
2023-01-17 07:10:13 +08:00
filename,
2022-12-10 06:48:04 +08:00
} = body;
2022-09-25 04:59:29 +08:00
2022-11-23 08:25:03 +08:00
check(breakoutId, String);
2022-12-10 06:48:04 +08:00
check(parentMeetingId, String);
2023-01-17 07:10:13 +08:00
check(filename, String);
2022-09-25 04:59:29 +08:00
await padCapture(breakoutId, parentMeetingId, filename);
2022-09-25 04:59:29 +08:00
}