2022-08-24 21:31:20 +08:00
|
|
|
import { check } from 'meteor/check';
|
2022-11-18 03:55:15 +08:00
|
|
|
import setPresentationExporting from '/imports/api/presentations/server/modifiers/setPresentationExporting';
|
2022-08-24 21:31:20 +08:00
|
|
|
|
|
|
|
export default function handlePresentationExportToastUpdate({ body }, meetingId) {
|
|
|
|
check(body, Object);
|
|
|
|
check(meetingId, String);
|
|
|
|
|
|
|
|
const {
|
|
|
|
presId, pageNumber, totalPages, status, error,
|
|
|
|
} = body;
|
|
|
|
|
|
|
|
check(presId, String);
|
|
|
|
check(pageNumber, Number);
|
|
|
|
check(totalPages, Number);
|
|
|
|
check(status, String);
|
|
|
|
check(error, Boolean);
|
|
|
|
|
2022-11-18 03:55:15 +08:00
|
|
|
setPresentationExporting(meetingId, presId, {
|
2022-08-24 21:31:20 +08:00
|
|
|
pageNumber, totalPages, status, error,
|
|
|
|
});
|
|
|
|
}
|