mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Updated notification name and other minor fixes
This commit is contained in:
@@ -326,9 +326,9 @@ api.scoreTask = {
|
||||
|
||||
let group = await Group.getGroup({user, groupId: task.group.id, fields: requiredGroupFields});
|
||||
let groupLeader = await User.findById(group.leader); // Use this method so we can get access to notifications
|
||||
groupLeader.addNotification('GROUP', {
|
||||
groupLeader.addNotification('GROUP_TASK_APPROVAL', {
|
||||
message: res.t('userHasRequestedTaskApproval', {
|
||||
user: user.auth.local.username,
|
||||
user: user.profile.name,
|
||||
taskName: task.text,
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user