bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/userSpeechLocaleChanged.js

14 lines
384 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import updateSpeechLocale from '../modifiers/updateSpeechLocale';
export default function handleUserSpeechLocaleChanged({ body, header }, meetingId) {
const { locale } = body;
const { userId } = header;
check(meetingId, String);
check(userId, String);
check(locale, String);
return updateSpeechLocale(meetingId, userId, locale);
}