bigbluebutton-Github/bigbluebutton-html5/imports/api/note/server/handlers/padUpdate.js

13 lines
287 B
JavaScript
Raw Normal View History

2019-06-01 04:02:33 +08:00
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);
}