ver 0.5.73:
- corretto invia monete da Conto Collettivo a Utente - Aggiunto Provincia (tutorial).. in corso...
This commit is contained in:
@@ -91,7 +91,7 @@ ProvinceSchema.statics.executeQueryPickup = async function(idapp, params) {
|
||||
ProvinceSchema.statics.findAllIdApp = async function(idapp) {
|
||||
const myfind = {};
|
||||
|
||||
return Province.find(myfind).sort({reg: 1, prov: 1});
|
||||
return Province.find(myfind).sort({prov: 1});
|
||||
};
|
||||
|
||||
const Province = mongoose.model('Province', ProvinceSchema);
|
||||
|
||||
@@ -426,6 +426,13 @@ const UserSchema = new mongoose.Schema({
|
||||
{
|
||||
type: Number,
|
||||
}],
|
||||
resid_prov_id: {
|
||||
type: Number,
|
||||
},
|
||||
resid_province: {
|
||||
type: String,
|
||||
trim: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -121,5 +121,6 @@ module.exports = {
|
||||
{_id: 126, idSector: [1], descr: 'Terreno'},
|
||||
{_id: 127, idSector: [1], descr: 'Stanza in affitto'},
|
||||
{_id: 128, idSector: [1], descr: 'Stanza in condivisione'},
|
||||
{_id: 129, idSector: [3], descr: 'Home Restaurant'},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -153,7 +153,7 @@ router.post('/', async (req, res) => {
|
||||
if (lastrec.ipaddr === user.ipaddr) {
|
||||
// Se l'ha fatto troppo ravvicinato
|
||||
if (lastrec.date_reg) {
|
||||
let ris = tools.isdiffSecDateLess(lastrec.date_reg, 120);
|
||||
let ris = tools.isdiffSecDateLess(lastrec.date_reg, 5);
|
||||
if (ris) {
|
||||
tools.writeIPToBan(
|
||||
user.ipaddr + ': [' + user.username + '] ' + user.name + ' ' +
|
||||
|
||||
Reference in New Issue
Block a user