2017-08-03 09:24:38 +08:00
|
|
|
import { check } from 'meteor/check';
|
2018-04-10 07:18:49 +08:00
|
|
|
import modifyWhiteboardAccess from '../modifiers/modifyWhiteboardAccess';
|
2017-08-03 09:24:38 +08:00
|
|
|
|
2023-04-01 04:40:41 +08:00
|
|
|
export default async function handleModifyWhiteboardAccess({ body }, meetingId) {
|
2018-04-10 07:18:49 +08:00
|
|
|
const { multiUser, whiteboardId } = body;
|
2017-08-03 09:24:38 +08:00
|
|
|
|
2021-03-05 06:26:25 +08:00
|
|
|
check(multiUser, Array);
|
2018-04-10 07:18:49 +08:00
|
|
|
check(whiteboardId, String);
|
2017-08-03 09:24:38 +08:00
|
|
|
check(meetingId, String);
|
2023-04-01 04:40:41 +08:00
|
|
|
const result = await modifyWhiteboardAccess(meetingId, whiteboardId, multiUser);
|
|
|
|
return result;
|
2017-08-03 09:24:38 +08:00
|
|
|
}
|