Commit 4305d5a4 by Иван Кубота

fix 33

parent f9093a3b
......@@ -95,14 +95,14 @@ module.exports = {
if(!att || !att.length){
console.error('NO ATTEMPT, ', att);
return false;
return {status: 'false'};
}
return await asyncPool('UPDATE quiz_attempt SET' +
'is_top=?, completed=?, completed_at=?' +
' WHERE attempt_id=?', [args.body.is_top?1:0, 1, new Date(), att.id])
' WHERE id=?', [args.body.is_top?1:0, 1, new Date(), att.id])
}
},
......
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