bigbluebutton-Github/bigbluebutton-html5/imports/api/note/server/handlers/padUpdate.js
2019-05-31 20:02:33 +00:00

13 lines
287 B
JavaScript

import { check } from 'meteor/check';
import updateNote from '/imports/api/note/server/modifiers/updateNote';
export default function handlePadUpdate({ body }) {
const { pad, revs } = body;
const { id } = pad;
check(id, String);
check(revs, Number);
updateNote(id, revs);
}