fix(price): include product file_id in SSE list identity
Image uploads were ignored by the live list hash, so the stream kept republishing a stale product payload and the theme reverted to the old photo. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -175,8 +175,11 @@ class PriceBroadcastService
|
||||
continue;
|
||||
}
|
||||
|
||||
$file = is_array($product['file'] ?? null) ? $product['file'] : [];
|
||||
|
||||
$identity[] = [
|
||||
'id' => (int) ($product['id'] ?? 0),
|
||||
'file_id' => (int) ($product['file_id'] ?? ($file['id'] ?? 0)),
|
||||
'price' => (int) ($product['price'] ?? 0),
|
||||
'price_profit' => (int) ($product['price_profit'] ?? 0),
|
||||
'amount' => (float) ($product['amount'] ?? 0),
|
||||
|
||||
Reference in New Issue
Block a user