7f926edfcc
Refactor the external videos collection, moving the logic and functionalities outside of /imports/api/meetings to a new location in /external-videos/server/modifiers in order to decrease the coupling between the functionalities, favoring the maintenance.
12 lines
364 B
JavaScript
12 lines
364 B
JavaScript
import { check } from 'meteor/check';
|
|
import startExternalVideo from '../modifiers/startExternalVideo';
|
|
|
|
export default function handleStartExternalVideo({ header, body }, meetingId) {
|
|
const { userId } = header;
|
|
check(body, Object);
|
|
check(meetingId, String);
|
|
|
|
const { externalVideoUrl } = body;
|
|
startExternalVideo(meetingId, userId, externalVideoUrl);
|
|
}
|