Skip to content

Commit

Permalink
Fixed minor participant moderation event handling
Browse files Browse the repository at this point in the history
  • Loading branch information
devopvoid committed Feb 8, 2024
1 parent 21e3265 commit dd5ec54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/service/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/transport/course-participant-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export namespace CourseParticipantApi {
}

export function banParticipant(courseId: number, userId: string): Promise<void> {
return new HttpRequest().post(`/api/v1/course/${courseId}/ban/${userId}`);
return new HttpRequest().post(`/api/v1/course/${courseId}/user/ban/${userId}`);
}

}

0 comments on commit dd5ec54

Please sign in to comment.