Notification New Group
This commit is contained in:
@@ -235,10 +235,12 @@ MyGroupSchema.statics.getInfoGroupByGroupname = async function(idapp, groupname)
|
||||
|
||||
const whatToShow = this.getWhatToShow(idapp, groupname);
|
||||
|
||||
return MyGroup.findOne({
|
||||
const rec = await MyGroup.findOne({
|
||||
idapp,
|
||||
groupname,
|
||||
}, whatToShow).then((rec) => !!rec ? rec._doc : null);
|
||||
}, whatToShow).lean();
|
||||
|
||||
return rec;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user