13 lines
390 B
JavaScript
13 lines
390 B
JavaScript
|
import { check } from 'meteor/check';
|
||
|
import floorChanged from '../modifiers/floorChanged';
|
||
|
|
||
|
export default function handleFloorChanged({ header, body }, meetingId) {
|
||
|
const { intId, floor, lastFloorTime } = body;
|
||
|
check(meetingId, String);
|
||
|
check(intId, String);
|
||
|
check(floor, Boolean);
|
||
|
check(lastFloorTime, String);
|
||
|
|
||
|
return floorChanged(meetingId, intId, floor, lastFloorTime);
|
||
|
}
|