Speccing and fixing user list loading and adding orders to other users
This commit is contained in:
+2
-1
@@ -273,7 +273,8 @@ class List
|
||||
save
|
||||
|
||||
|
||||
broadcast_users 'new_order', order: order.with_products_as_json, total_amount: price
|
||||
# broadcast_users 'new_order', order: order.with_products_as_json, total_amount: price
|
||||
broadcast_users 'new_order', OrderSerializer.new(order).as_json
|
||||
broadcast_users 'orders_placed_count', count: orders_placed_count
|
||||
|
||||
broadcast_supplier supplier.id, 'list_update', SupplierListSerializer.new(self).as_json
|
||||
|
||||
Reference in New Issue
Block a user