- fix: resizing image uploaded
- add: mybachecas
This commit is contained in:
@@ -2558,6 +2558,7 @@ UserSchema.statics.calculateStat = async function(idapp, username) {
|
||||
const User = this;
|
||||
|
||||
const {MySkill} = require('../models/myskill');
|
||||
const {MyBacheca} = require('../models/mybacheca');
|
||||
const {MyGroup} = require('../models/mygroup');
|
||||
|
||||
const numUsersReg = await User.countDocuments(
|
||||
@@ -2570,9 +2571,11 @@ UserSchema.statics.calculateStat = async function(idapp, username) {
|
||||
|
||||
const numMySkills = await MySkill.countDocuments({idapp});
|
||||
|
||||
const numMyBachecas = await MyBacheca.countDocuments({idapp});
|
||||
|
||||
const numGroups = await MyGroup.countDocuments({idapp});
|
||||
|
||||
return {numMySkills, numUsersReg, numGroups};
|
||||
return {numMySkills, numMyBachecas, numUsersReg, numGroups};
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user