| @@ -180,11 +180,11 @@ | ||
| 180 | 180 | // build snapshot data |
| 181 | 181 | $snapshotData = [ |
| 182 | 182 | 'listing_id' => null, |
| 183 | 183 | 'id_price' => $options['id_price'] ?? null, |
| 184 | - 'from_date' => date('Y-m-d'), | |
| 185 | - 'to_date' => date('Y-m-d', strtotime(sprintf('+%d months', (int) ($options['months'] ?? 3)))), | |
| 186 | - 'skip_derived' => true, | |
| 184 | + 'from_date' => $options['from_date'] ?? date('Y-m-d'), | |
| 185 | + 'to_date' => $options['to_date'] ?? date('Y-m-d', strtotime(sprintf('+%d months', (int) ($options['months'] ?? 3)))), | |
| 186 | + 'skip_derived' => boolval($options['skip_derived'] ?? true), | |
| 187 | 187 | 'use_cache' => true, |
| 188 | 188 | 'forced' => true, |
| 189 | 189 | ]; |
| 190 | 190 | |