mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Delete room on end-quiz
This commit is contained in:
parent
db6fa947d7
commit
2c7fd9c828
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ class WebSocketService {
|
|||
endQuiz(roomName: string) {
|
||||
if (this.socket) {
|
||||
this.socket.emit('end-quiz', { roomName });
|
||||
//Delete room in mongoDb, roomContainer will be deleted in cleanup
|
||||
fetch(`/api/room/${roomName}`, { method: 'DELETE' });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue