- Estrazione dei dati da Amazon
- Ciclo di Estrapolazione di tutti i prodotti ed aggiornamento dei campi scraped e scraped_updated - Creazione file CSV con i campi modificati.
This commit is contained in:
@@ -241,6 +241,12 @@ const productSchema = new Schema({
|
||||
scraped: {
|
||||
type: Boolean,
|
||||
},
|
||||
scraped_error: {
|
||||
type: Boolean,
|
||||
},
|
||||
scraped_updated: {
|
||||
type: Boolean,
|
||||
},
|
||||
scraped_date: {
|
||||
type: Date,
|
||||
},
|
||||
@@ -476,7 +482,7 @@ module.exports.findAllIdApp = async function (idapp, code, id, all, isbn) {
|
||||
if (idapp) {
|
||||
myfind = {
|
||||
idapp,
|
||||
$or: [{ delete: { $exists: false } }, { delete: false }],
|
||||
$or: [{ deleted: { $exists: false } }, { deleted: { $exists: true, $eq: false } }],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -183,13 +183,6 @@ const productInfoSchema = new Schema({
|
||||
sottotitolo: String,
|
||||
link_macro: String,
|
||||
|
||||
scraped: {
|
||||
type: Boolean,
|
||||
},
|
||||
scraped_date: {
|
||||
type: Date,
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
var productInfo = module.exports = mongoose.model('ProductInfo', productInfoSchema);
|
||||
|
||||
Reference in New Issue
Block a user