- fix: resizing image uploaded

- add: mybachecas
This commit is contained in:
paoloar77
2022-02-16 19:21:12 +01:00
parent bae30504f7
commit 04f76c61a7
10 changed files with 785 additions and 174 deletions

View File

@@ -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};
};