GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit ba3b205a authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes test

parent 39cef6d9
......@@ -260,7 +260,7 @@ class QuizDAO extends AbstractDAO {
public async setQuizAsInactive(quizName: string, privateKey: string): Promise<void> {
const quiz = await this.getQuizByName(quizName);
const purgedQuizData = quiz.visibility === QuizVisibility.Any || (await UserDAO.getUserByPrivateKey(privateKey)) ? {} : {
const purgedQuizData = (quiz?.visibility === QuizVisibility.Any || (await UserDAO.getUserByPrivateKey(privateKey))) ? {} : {
sessionConfig: null,
questionList: null,
};
......
......@@ -686,7 +686,7 @@ export class QuizRouter extends AbstractRouter {
step: MessageProtocol.SaveQuiz,
payload: (
await QuizDAO.getQuizByName(quiz.name)
).toJSON({ getters: true }),
).toJSON(),
};
}
}
......
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