Missing message (user claim task)

This commit is contained in:
Mateus Etto
2018-02-19 20:07:05 +09:00
parent 2619ac37d9
commit 521a1e646d
2 changed files with 8 additions and 1 deletions

View File

@@ -199,7 +199,11 @@ api.assignTask = {
// User is claiming the task
if (user._id === assignedUserId) {
let message = res.t('userIsClamingTask', {username: user.profile.name, task: task.text});
group.sendChat(message);
group.sendChat(message, null, null, {
type: 'claim_task',
user: user.profile.name,
task: task.text,
});
}
let promises = [];