mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Fixed line endings
This commit is contained in:
@@ -2,7 +2,6 @@ import {
|
|||||||
createAndPopulateGroup,
|
createAndPopulateGroup,
|
||||||
translate as t,
|
translate as t,
|
||||||
} from '../../../../../helpers/api-integration/v3';
|
} from '../../../../../helpers/api-integration/v3';
|
||||||
import { v4 as generateUUID } from 'uuid';
|
|
||||||
import { find } from 'lodash';
|
import { find } from 'lodash';
|
||||||
|
|
||||||
describe('GET /approvals/group/:groupId', () => {
|
describe('GET /approvals/group/:groupId', () => {
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ api.scoreTask = {
|
|||||||
task.approvalRequestedDate = new Date();
|
task.approvalRequestedDate = new Date();
|
||||||
|
|
||||||
let group = await Group.getGroup({user, groupId: task.group.id, fields: requiredGroupFields});
|
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
|
let groupLeader = await User.findById(group.leader); // Use this method so we can get access to notifications
|
||||||
groupLeader.addNotification('GROUP', {
|
groupLeader.addNotification('GROUP', {
|
||||||
message: res.t('userHasRequestedTaskApproval', {
|
message: res.t('userHasRequestedTaskApproval', {
|
||||||
user: user.auth.local.username,
|
user: user.auth.local.username,
|
||||||
|
|||||||
Reference in New Issue
Block a user