2022-09-25 04:59:29 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import padCapture from '../methods/padCapture';
|
|
|
|
|
2022-11-23 08:25:03 +08:00
|
|
|
export default function captureSharedNotes({ body }, parentMeetingId) {
|
2022-09-25 04:59:29 +08:00
|
|
|
check(body, Object);
|
2022-11-23 08:25:03 +08:00
|
|
|
check(parentMeetingId, String);
|
2022-09-25 04:59:29 +08:00
|
|
|
|
2022-11-23 08:25:03 +08:00
|
|
|
const { breakoutId, meetingName } = body;
|
2022-09-25 04:59:29 +08:00
|
|
|
|
2022-11-23 08:25:03 +08:00
|
|
|
check(breakoutId, String);
|
2022-09-29 01:56:29 +08:00
|
|
|
check(meetingName, String);
|
2022-09-25 04:59:29 +08:00
|
|
|
|
2022-11-23 08:25:03 +08:00
|
|
|
padCapture(breakoutId, parentMeetingId, meetingName);
|
2022-09-25 04:59:29 +08:00
|
|
|
}
|