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:
2026-08-25 16:14:46 +03:30
co-authored by Cursor
parent 793c8cd9ed
commit 9a6d22daf6
+3
View File
@@ -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),