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

double parse tags

parent 5d18f1b7
......@@ -300,7 +300,7 @@ module.exports = {
left join quiz_position on quiz_position.quiz_id = quiz.id
WHERE user_position_id=(SELECT position_id from users WHERE id=?) and end_date>=CURDATE() && start_date<=CURDATE();`, [args.userID])).map(q=>{
try{
q.tags = JSON.parse(q.tags);
q.tags = JSON.parse(JSON.parse(q.tags));
}catch (e) {
console.error('Can not parse tags');
}
......
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