Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ARSnova
arsnova-click-v2-backend
Commits
2a8a6143
Commit
2a8a6143
authored
Aug 31, 2019
by
Christopher Mark Fullarton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes the exchange of quizzes if they are deleted
parent
9448f4a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/entities/quiz/QuizEntity.ts
src/entities/quiz/QuizEntity.ts
+1
-3
No files found.
src/entities/quiz/QuizEntity.ts
View file @
2a8a6143
...
...
@@ -179,13 +179,11 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
}
public
onRemove
():
void
{
MemberDAO
.
getMembersOfQuiz
(
this
.
name
).
forEach
(
member
=>
{
AMQPConnector
.
channel
.
deleteQueue
(
encodeURI
(
`
${
member
.
currentQuizName
}
_
${
member
.
name
}
`
));
});
AMQPConnector
.
channel
.
publish
(
this
.
_exchangeName
,
'
.*
'
,
Buffer
.
from
(
JSON
.
stringify
({
status
:
StatusProtocol
.
Success
,
step
:
MessageProtocol
.
Closed
,
})));
AMQPConnector
.
channel
.
deleteExchange
(
this
.
_exchangeName
);
}
public
reset
():
void
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment