2019-02-22 05:09:44 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import userInactivityInspect from '../modifiers/userInactivityInspect';
|
|
|
|
|
2023-03-15 21:18:31 +08:00
|
|
|
export default async function handleUserInactivityInspect({ header, body }, meetingId) {
|
2019-02-22 05:09:44 +08:00
|
|
|
const { userId } = header;
|
|
|
|
const { responseDelay } = body;
|
|
|
|
|
|
|
|
check(userId, String);
|
|
|
|
check(responseDelay, Match.Integer);
|
|
|
|
check(meetingId, String);
|
|
|
|
|
2023-03-15 21:18:31 +08:00
|
|
|
await userInactivityInspect(userId, responseDelay);
|
2019-02-22 05:09:44 +08:00
|
|
|
}
|