fix: pre-process both the existing and new products
diff --git a/erpnext/hub_node/api.py b/erpnext/hub_node/api.py
index 2035174..b260417 100644
--- a/erpnext/hub_node/api.py
+++ b/erpnext/hub_node/api.py
@@ -157,8 +157,9 @@
existing_items = map_fields(items_to_update)
try:
- item_sync_preprocess(len(items))
- convert_relative_image_urls_to_absolute(items)
+ item_sync_preprocess(len(new_items+existing_items))
+ convert_relative_image_urls_to_absolute(new_items)
+ convert_relative_image_urls_to_absolute(existing_items)
# TODO: Publish Progress
connection = get_hub_connection()