scraper update

This commit is contained in:
Hickmeister
2025-01-14 23:24:23 +00:00
parent 030d72c202
commit cc4e915cf5
2 changed files with 16 additions and 4 deletions

View File

@@ -48,7 +48,10 @@ try {
'color' => $filament['color'],
'amazonUrl' => $filament['amazonUrl'],
'prices' => [],
'currentDiscount' => $filament['currentDiscount'] ? json_decode($filament['currentDiscount'], true) : null // Decode JSON format
'currentDiscount' => $filament['currentDiscount'] ? json_decode($filament['currentDiscount'], true) : [
'discount' => ['value' => 0, 'type' => 'none'],
'voucher' => ['value' => 0, 'type' => 'none']
] // Decode JSON format and provide fallback
];
}