aggiunto :
->where(function ($query) {
$query->where('DescrizioneStatoProdotto', 'In commercio')
->orWhere('DescrizioneStatoProdotto', '2023 in commercio')
->orWhere('DescrizioneStatoProdotto', 'Vendita sito')
->orWhere('DescrizioneStatoProdotto', 'In prevendita')
->orWhere('DescrizioneStatoProdotto', 'Prossima uscita');
})
This commit is contained in:
@@ -51,7 +51,7 @@ class ProductUpdateGm extends Command
|
||||
ini_set("memory_limit", "512M");
|
||||
$settingora = Setting::where('key', 'update_products')->first();
|
||||
$productLogger = new ProductLogger($settingora, 'updateproducts', true);
|
||||
|
||||
|
||||
try {
|
||||
$productLogger->addLog('inserted', 'PRODOTTI INSERITI' . "\n");
|
||||
$productLogger->addLog('not_inserted', 'EVENTUALI PRODOTTI NON INSERITI' . "\n");
|
||||
@@ -85,10 +85,12 @@ class ProductUpdateGm extends Command
|
||||
->where('data', '>=', $fromtime)
|
||||
->where(function ($query) {
|
||||
$query->where('DescrizioneStatoProdotto', 'In commercio')
|
||||
->orWhere('DescrizioneStatoProdotto', '2023 in commercio')
|
||||
->orWhere('DescrizioneStatoProdotto', 'Vendita sito')
|
||||
->orWhere('DescrizioneStatoProdotto', 'In prevendita')
|
||||
->orWhere('DescrizioneStatoProdotto', 'Prossima uscita');
|
||||
})
|
||||
//->where('DescrizioneTipologia','Video Streaming')
|
||||
//->where('DescrizioneTipologia','Video Streaming')
|
||||
->orderBy('Titolo')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user