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.
18 lines
430 B
JavaScript
18 lines
430 B
JavaScript
import { check } from 'meteor/check';
|
|
import updateExternalVideo from '../modifiers/updateExternalVideo';
|
|
|
|
export default function handleUpdateExternalVideo({ header, body }, meetingId) {
|
|
const { userId } = header;
|
|
check(body, Object);
|
|
check(meetingId, String);
|
|
check(userId, String);
|
|
const {
|
|
status,
|
|
rate,
|
|
time,
|
|
state,
|
|
} = body;
|
|
|
|
updateExternalVideo(meetingId, userId, status, rate, time, state);
|
|
}
|