mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
fix(teams): layout issues, error, change timezone format
This commit is contained in:
@@ -409,10 +409,7 @@ api.getGroup = {
|
||||
}
|
||||
|
||||
const groupJson = await Group.toJSONCleanChat(group, user);
|
||||
|
||||
if (groupJson.leader === user._id) {
|
||||
groupJson.purchased.plan = group.purchased.plan.toObject();
|
||||
}
|
||||
groupJson.purchased.plan = group.purchased.plan.toObject();
|
||||
|
||||
// Instead of populate we make a find call manually because of https://github.com/Automattic/mongoose/issues/3833
|
||||
const leader = await User.findById(groupJson.leader).select(`${nameFields} preferences.timezoneOffset preferences.dayStart`).exec();
|
||||
|
||||
Reference in New Issue
Block a user