fix: Upload Foto

This commit is contained in:
paoloar77
2022-02-16 09:40:16 +01:00
parent a3502c1d9d
commit bae30504f7
9 changed files with 147 additions and 63 deletions

View File

@@ -137,18 +137,16 @@ module.exports = {
"label" : "Dono",
"__v" : 0
},
{
"_id" : ObjectID("51bc466567de9a1f54b254f4"),
"idapp" : "13",
"label" : "Offerta Libera",
"__v" : 0
},
{
"_id" : ObjectID("51bc454867de9a1f54b254f2"),
"idapp" : "13",
"label" : "Baratto (scambio Beni o Servizi)",
"label" : "Baratto",
"__v" : 0
},
{
@@ -163,11 +161,41 @@ module.exports = {
"label" : "Monete Alternative",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b254ac"),
"idapp" : "13",
"label" : "Ris (RISO)",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b254ad"),
"idapp" : "13",
"label" : "Sardex",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b254ae"),
"idapp" : "13",
"label" : "Gaiax (ProItaly)",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b254af"),
"idapp" : "13",
"label" : "Val (VAL.AZ.CO.)",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b254fb"),
"idapp" : "13",
"label" : "Euro",
"__v" : 0
},
{
"_id" : ObjectID("51bc482667de9a1f64b257fb"),
"idapp" : "13",
"label" : "Criptomonete",
"__v" : 0
},
]
}

View File

@@ -1,10 +1,8 @@
module.exports = {
list: [
{_id: 0, descr: '[Nessuno]', years_of_exp: 0},
{_id: 1, descr: 'Principiante', years_of_exp: 1},
{_id: 1, descr: 'Elementare', years_of_exp: 1},
{_id: 2, descr: 'Intermedio', years_of_exp: 3},
{_id: 3, descr: 'Avanzato', years_of_exp: 5},
{_id: 4, descr: 'Esperto', years_of_exp: 10},
{_id: 5, descr: 'Veterano', years_of_exp: 20},
],
};

View File

@@ -169,6 +169,7 @@ module.exports = {
const {Contribtype} = require('../models/contribtype');
await this.insertIntoDb_NoDuplicate(false, 'contribtypes', Contribtype, 'label')
// AdTypes
const {AdType} = require('../models/adtype');
await this.insertIntoDb_NoDuplicate(abilita, 'adtypes', AdType, 'descr')