Adjusted the PR 'methods' to #4322
This commit is contained in:
parent
43b3b89c6a
commit
eca8090bac
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/clearWhiteboard.js
Normal file → Executable file
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/clearWhiteboard.js
Normal file → Executable file
@ -23,15 +23,9 @@ export default function clearWhiteboard(credentials, whiteboardId) {
|
||||
);
|
||||
}
|
||||
|
||||
const header = {
|
||||
name: EVENT_NAME,
|
||||
meetingId,
|
||||
userId: requesterUserId,
|
||||
};
|
||||
|
||||
const payload = {
|
||||
whiteboardId,
|
||||
};
|
||||
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, header);
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, { userId: requesterUserId });
|
||||
}
|
||||
|
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/sendAnnotation.js
Normal file → Executable file
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/sendAnnotation.js
Normal file → Executable file
@ -48,15 +48,9 @@ export default function sendAnnotation(credentials, annotation) {
|
||||
);
|
||||
}
|
||||
|
||||
const header = {
|
||||
name: EVENT_NAME,
|
||||
meetingId,
|
||||
userId: requesterUserId,
|
||||
};
|
||||
|
||||
const payload = {
|
||||
annotation,
|
||||
};
|
||||
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, header);
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, { userId: requesterUserId });
|
||||
}
|
||||
|
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/undoAnnotation.js
Normal file → Executable file
8
bigbluebutton-html5/imports/api/2.0/annotations/server/methods/undoAnnotation.js
Normal file → Executable file
@ -23,15 +23,9 @@ export default function undoAnnotation(credentials, whiteboardId) {
|
||||
);
|
||||
}
|
||||
|
||||
const header = {
|
||||
name: EVENT_NAME,
|
||||
meetingId,
|
||||
userId: requesterUserId,
|
||||
};
|
||||
|
||||
const payload = {
|
||||
whiteboardId,
|
||||
};
|
||||
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, header);
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, { userId: requesterUserId });
|
||||
}
|
||||
|
8
bigbluebutton-html5/imports/api/2.0/cursor/server/methods/publishCursorUpdate.js
Normal file → Executable file
8
bigbluebutton-html5/imports/api/2.0/cursor/server/methods/publishCursorUpdate.js
Normal file → Executable file
@ -27,16 +27,10 @@ export default function publishCursorUpdate(credentials, coordinates) {
|
||||
);
|
||||
}
|
||||
|
||||
const header = {
|
||||
name: EVENT_NAME,
|
||||
userId: requesterUserId,
|
||||
meetingId,
|
||||
};
|
||||
|
||||
const payload = {
|
||||
xPercent: coordinates.xPercent,
|
||||
yPercent: coordinates.yPercent,
|
||||
};
|
||||
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, header);
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, { userId: requesterUserId });
|
||||
}
|
||||
|
8
bigbluebutton-html5/imports/api/2.0/whiteboard-multi-user/server/methods/changeWhiteboardAccess.js
Normal file → Executable file
8
bigbluebutton-html5/imports/api/2.0/whiteboard-multi-user/server/methods/changeWhiteboardAccess.js
Normal file → Executable file
@ -14,15 +14,9 @@ export default function changeWhiteboardAccess(credentials, multiUser) {
|
||||
check(requesterToken, String);
|
||||
check(multiUser, Boolean);
|
||||
|
||||
const header = {
|
||||
name: EVENT_NAME,
|
||||
userId: requesterUserId,
|
||||
meetingId,
|
||||
};
|
||||
|
||||
const payload = {
|
||||
multiUser,
|
||||
};
|
||||
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, header);
|
||||
return RedisPubSub.publish(CHANNEL, EVENT_NAME, meetingId, payload, { userId: requesterUserId });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user