Notifications
Settings Notifications User Panel
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user