Notifications

Settings Notifications
User Panel
This commit is contained in:
Paolo Arena
2022-07-23 17:48:33 +02:00
parent e9ce597027
commit b06f1e4ab8
19 changed files with 472 additions and 121 deletions

View File

@@ -37,6 +37,16 @@ const ProvinceSchema = new Schema({
},
}, { _id : false });
ProvinceSchema.statics.getRegionByStrProvince = async function(strprovince) {
const myrec = await Province.findOne({prov: strprovince}).lean();
if (myrec) {
return myrec.reg;
}
return '';
}
ProvinceSchema.statics.getFieldsForSearch = function() {
return [