2022-09-25 04:59:29 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import padCapture from '../methods/padCapture';
|
|
|
|
|
2022-12-10 06:48:04 +08:00
|
|
|
export default function captureSharedNotes({ header, body }) {
|
|
|
|
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
|
|
|
|
2023-01-17 07:10:13 +08:00
|
|
|
padCapture(breakoutId, parentMeetingId, filename);
|
2022-09-25 04:59:29 +08:00
|
|
|
}
|