Update file sizes and modification times for class files in FTP sync cache

This commit is contained in:
2025-04-27 11:32:15 +02:00
parent 056559d0f3
commit 1aa3c3a390
2 changed files with 5 additions and 5 deletions

View File

@@ -35,14 +35,14 @@
},
"class.Cron.php": {
"type": "-",
"size": 20273,
"lmtime": 1744063175514,
"size": 20797,
"lmtime": 1745446362787,
"modified": false
},
"class.Products.php": {
"type": "-",
"size": 8915,
"lmtime": 1744489800429,
"size": 8924,
"lmtime": 1745445544980,
"modified": false
},
"class.Site.php": {

View File

@@ -259,7 +259,7 @@ class Cron
$conversions_value = $offer['conversions_value'];
$roas = ( $conversions_value > 0 and $cost ) ? round( $conversions_value / $cost, 2 ) * 100 : 0;
if ( $day_count >= 30 )
if ( $mdb -> count( 'products_history', [ 'AND' => [ 'product_id' => $product_id, 'date_add[<=]' => $date_to ] ] ) >= 30 )
{
if ( $mdb -> count( 'products_history_30', [ 'AND' => [ 'product_id' => $product_id, 'date_add' => $date_to ] ] ) > 0 )
{