Fixes exchange creation

parent 68ae2355
...@@ -157,7 +157,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> { ...@@ -157,7 +157,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> {
} }
const entity = new QuizEntity(quizDoc); const entity = new QuizEntity(quizDoc);
await AMQPConnector.channel.assertExchange(`quiz_${encodeURI(entity.name)}`, 'fanout'); await AMQPConnector.channel.assertExchange(encodeURI(`quiz_${entity.name}`), 'fanout');
this.storage.push(entity); this.storage.push(entity);
return entity; return entity;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment