8d52dc1b40
Conflicts: bigbluebutton-html5/imports/api/chat/server/methods/sendChatMessagetoServer.js bigbluebutton-html5/imports/api/meetings/server/modifiers/addMeetingToCollection.js bigbluebutton-html5/imports/api/polls/server/methods/publishVoteMessage.js bigbluebutton-html5/imports/api/slides/server/modifiers/clearSlidesCollection.js bigbluebutton-html5/imports/api/users/server/methods/muteUser.js bigbluebutton-html5/imports/api/users/server/methods/setUserPresenter.js bigbluebutton-html5/imports/api/users/server/methods/unmuteUser.js bigbluebutton-html5/imports/api/users/server/methods/userSetEmoji.js bigbluebutton-html5/imports/api/users/server/methods/validateAuthToken.js bigbluebutton-html5/imports/startup/server/eventHandlers.js bigbluebutton-html5/imports/ui/components/app/AppService.js
15 lines
482 B
JavaScript
Executable File
15 lines
482 B
JavaScript
Executable File
import Slides from '/imports/api/slides';
|
|
import { logger } from '/imports/startup/server/logger';
|
|
|
|
// called on server start and meeting end
|
|
export function clearSlidesCollection() {
|
|
const meetingId = arguments[0];
|
|
if (meetingId != null) {
|
|
return Slides.remove({
|
|
meetingId: meetingId,
|
|
}, logger.info(`cleared Slides Collection (meetingId: ${meetingId}!`));
|
|
} else {
|
|
return Slides.remove({}, logger.info('cleared Slides Collection (all meetings)!'));
|
|
}
|
|
};
|