     dirtyResults = {}
     dirtyUsers = {}
     await setDirty(submit, dirtyResults, dirtyUsers)
+    await User.updateUser(submit.user, dirtyResults)
     
     await notifyUser submit.user, msg
 

                _id: "_#{rndId}r#{req.params.submitId}"
                submit: req.params.submitId
                problemId: problemId
                problemName: problem.name
                userId: submit.user
                text: comment
                time: new Date()

storeToDatabase = (req, res) ->
    submit = await Submit.findById(req.params.submitId)
    problemId = submit.problem
    material = await Material.findById(problemId + lang)
    logger.info("Store to database #{req.params.submitId} #{problemId} #{material._id}")
    user = await User.findByIdWithTelegram(submit.user)
    lang = GROUPS[user.userList].lang

    msg = generateMsg(lang, req.body.result, material.title, material._id)

