From 9a6d22daf68f36348b28a85a0b976316a569c789 Mon Sep 17 00:00:00 2001 From: mohammad sedighi Date: Tue, 25 Aug 2026 16:14:46 +0330 Subject: [PATCH] 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 --- app/Services/PriceBroadcastService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Services/PriceBroadcastService.php b/app/Services/PriceBroadcastService.php index 54fcfb4..0c25546 100644 --- a/app/Services/PriceBroadcastService.php +++ b/app/Services/PriceBroadcastService.php @@ -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),