- Le immagini uploadate non vengono visualizzate subito... cache... aggiungere la versione dell'immagine: vers_img
- Aggiunto il Server TESTRISO e TEST_PCB.
This commit is contained in:
@@ -16,6 +16,7 @@ mongoose.plugin(schema => {
|
||||
const myCard = new Schema(
|
||||
{
|
||||
imagefile: String,
|
||||
vers_img: Number,
|
||||
alt: String,
|
||||
description: String,
|
||||
style: String,
|
||||
@@ -169,6 +170,9 @@ const MyElemSchema = new Schema({
|
||||
image: {
|
||||
type: String,
|
||||
},
|
||||
vers_img: {
|
||||
type: Number,
|
||||
},
|
||||
listcards: [myCard],
|
||||
catalogo: catalogo,
|
||||
list: [
|
||||
@@ -176,6 +180,9 @@ const MyElemSchema = new Schema({
|
||||
imagefile: {
|
||||
type: String
|
||||
},
|
||||
vers_img: {
|
||||
type: Number,
|
||||
},
|
||||
order: {
|
||||
type: Number
|
||||
},
|
||||
|
||||
@@ -1499,6 +1499,7 @@ UserSchema.statics.createNewRequestPwd = function (idapp, email, code) {
|
||||
res.status(400).send();
|
||||
});
|
||||
} else {
|
||||
console.log('findByEmail idapp: ', idapp, 'email', email);
|
||||
return User.findByEmail(idapp, email).then(async (user) => {
|
||||
if (!user) {
|
||||
return { ris: false };
|
||||
|
||||
Reference in New Issue
Block a user