         await newComment.upsert()
         submit.comments.push(req.body.comment)
     await submit.upsert()
+    await updateData(req, res)  # to store comment with proper outcome
     await User.updateUser(submit.user)
 
 export default setOutcome = (req, res) ->

        outcomeCode = 9
    if req.body.result == "DQ"
        outcomeCode = 10
    if outcomeCode
        href = "http://informatics.mccme.ru/py/run/rejudge/#{contest}/#{run}/#{outcomeCode}"
        await adminUser.download href

updateData = (req, res) ->
    [fullSubmitId, contest, run, problem] = req.params.submitId.match(/(\d+)r(\d+)p(\d+)/)

postToInformatics = (req, res) ->
    adminUser = await InformaticsUser.findAdmin()
    [fullSubmitId, contest, run, problem] = req.params.submitId.match(/(\d+)r(\d+)p(\d+)/)
    outcomeCode = undefined
    if req.body.result == "AC"
        outcomeCode = 8
