Commit 40606314 by Иван Кубота

smallfix

parent 0e406241
...@@ -331,7 +331,7 @@ module.exports = { ...@@ -331,7 +331,7 @@ module.exports = {
var answers = await asyncPool('select * from quiz_answer where quiz_answer.quiz_question_id in (select id from quiz_question where attempt_id=?);', [args.attemptID]) var answers = await asyncPool('select * from quiz_answer where quiz_answer.quiz_question_id in (select id from quiz_question where attempt_id=?);', [args.attemptID])
answers.forEach(a=>{ answers.forEach(a=>{
qHash[a.question_id].answers.push(a); qHash[a.quiz_question_id].answers.push(a);
}); });
questions.sort((a,b)=>b.number-a.number); questions.sort((a,b)=>b.number-a.number);
......
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