bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/handlers/userSpeechLocaleChanged.js
2023-04-25 10:05:16 -03:00

14 lines
384 B
JavaScript

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);
}