Tasks scoring and misc fixes (#8925)

* wip: add task scoring and persist checklist items

* remove unused files, fix checklist scoring and start adding support for groups tasks

* amke group and challenge tasks not scoreable
This commit is contained in:
Matteo Pagliazzi
2017-08-04 23:27:11 +02:00
committed by GitHub
parent ac800a94f9
commit c3ba70f5d6
30 changed files with 194 additions and 120 deletions

View File

@@ -2,7 +2,7 @@ import get from 'lodash/get';
module.exports = function deletePM (user, req = {}) {
delete user.inbox.messages[get(req, 'params.id')];
user.markModified(`inbox.messages.${req.params.id}`);
if (user.markModified) user.markModified(`inbox.messages.${req.params.id}`);
return [
user.inbox.messages,
];