diff --git a/src/service/event.service.ts b/src/service/event.service.ts index 1f37395..b9a0daf 100644 --- a/src/service/event.service.ts +++ b/src/service/event.service.ts @@ -73,6 +73,9 @@ export class EventService extends EventTarget { client.subscribe("/topic/course/event/" + this.courseId + "/publisher", (message: Message) => { this.handleEvent("lp-publisher-presence", message.body); }); + client.subscribe("/topic/course/event/" + this.courseId + "/moderation", (message: Message) => { + this.handleEvent("lp-participant-moderation", message.body); + }); for (const subService of this.subServices) { subService.initialize(this.courseId, client, this.eventEmitter); diff --git a/src/transport/course-participant-api.ts b/src/transport/course-participant-api.ts index 5e647e0..a3336ac 100644 --- a/src/transport/course-participant-api.ts +++ b/src/transport/course-participant-api.ts @@ -8,7 +8,7 @@ export namespace CourseParticipantApi { } export function banParticipant(courseId: number, userId: string): Promise { - return new HttpRequest().post(`/api/v1/course/${courseId}/ban/${userId}`); + return new HttpRequest().post(`/api/v1/course/${courseId}/user/ban/${userId}`); } }