Commit 01fc4a3c by Иван Кубота

grh

parent 178b3c5a
...@@ -143,9 +143,10 @@ module.exports = { ...@@ -143,9 +143,10 @@ module.exports = {
} }
} }
maxChain = Math.max(maxChain, curChain); maxChain = Math.max(maxChain, curChain);
return await asyncPool('UPDATE quiz_attempt SET' +
return await asyncPool('UPDATE quiz_attempt SET ' +
'count_correct=?, max_chain=?, completed=?, completed_at=?' + 'count_correct=?, max_chain=?, completed=?, completed_at=?' +
' WHERE attempt_id=?', [countCorrect, maxChain, 1, new Date(), q[0].attempt_id]) ' WHERE attempt_id=?;', [countCorrect, maxChain, 1, new Date(), q[0].attempt_id])
}else{ }else{
......
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