mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
* 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
10 lines
261 B
JavaScript
10 lines
261 B
JavaScript
import get from 'lodash/get';
|
|
|
|
module.exports = function deletePM (user, req = {}) {
|
|
delete user.inbox.messages[get(req, 'params.id')];
|
|
if (user.markModified) user.markModified(`inbox.messages.${req.params.id}`);
|
|
return [
|
|
user.inbox.messages,
|
|
];
|
|
};
|