Removes the currentStartTimestamp if the quizTimer has ended

parent 21f16efb
......@@ -348,6 +348,7 @@ export class QuizEntity extends AbstractEntity implements IQuizEntity {
if (this._quizTimer <= 0) {
clearInterval(this._quizTimerInterval);
DbDAO.updateOne(DbCollection.Quizzes, { _id: this.id }, { currentStartTimestamp: -1 });
}
}, 1000);
......
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