mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Merge branch 'develop' into party-chat-translations
# Conflicts: # website/server/controllers/api-v3/user.js
This commit is contained in:
@@ -86,7 +86,7 @@ api.getGroupTasks = {
|
||||
middlewares: [authWithHeaders()],
|
||||
async handler (req, res) {
|
||||
req.checkParams('groupId', res.t('groupIdRequired')).notEmpty().isUUID();
|
||||
req.checkQuery('type', res.t('invalidTaskType')).optional().isIn(types);
|
||||
req.checkQuery('type', res.t('invalidTasksType')).optional().isIn(types);
|
||||
|
||||
let validationErrors = req.validationErrors();
|
||||
if (validationErrors) throw validationErrors;
|
||||
@@ -493,8 +493,8 @@ api.getGroupApprovals = {
|
||||
'group.approval.approved': false,
|
||||
'group.approval.requested': true,
|
||||
}, 'userId group text')
|
||||
.populate('userId', 'profile')
|
||||
.exec();
|
||||
.populate('userId', 'profile')
|
||||
.exec();
|
||||
|
||||
res.respond(200, approvals);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user