Added fields for more approver details

This commit is contained in:
Keith Holliday
2016-10-08 06:35:53 -05:00
parent f2e5bc52e5
commit 2173f53883
3 changed files with 5 additions and 1 deletions

View File

@@ -219,6 +219,8 @@ api.approveTask = {
if (group.leader !== user._id) throw new NotAuthorized(res.t('onlyGroupLeaderCanEditTasks'));
task.approvedDate = new Date();
task.approvingUser = user._id;
task.approved = true;
await task.save();