Skip to content

1.5.5

🩺 Patch 1.5.5 — FBA stock fallback & webhook pass-through

🚀 New Features

  • process_sync_fba_skus now supports a fallback mode: when sync_base_articles=False and no items were returned by the Sellerlogic fetch, the function iterates existing fba_details rows and applies stock_map and dim_map to ensure stock and dimensions are updated for known SKUs.

🔧 Improvements

  • When no items are fetched from Sellerlogic during cron syncs, process_sync_fba_skus will:
  • Query fba_details rows that match the seller and have a seller_sku.
  • Apply stock_map (and dim_map) to the FBADetails entries and corresponding repricer_articles base article stock fields where a mapping exists.
  • Commit changes to the DB and include updated counts in the returned updated_count so cron logs reflect actual updates.
  • cron_job_wrapper properly forwards discord_webhook from the HTTP request into the background _recalc_background so Discord notifications from the cron job include the webhook set in the UI.

🐛 Bug Fixes

  • Fixed FBA Sync Updated: 0 message when cron runs with sync_base_articles=False by ensuring DB rows are updated even if Sellerlogic returns empty items.
  • Fixed missing webhook forwarding so cron-launched background tasks can post to Discord when users supply a webhook in the UI.

Files changed

  • backend/service_multi-repricer/app/api/v1/endpoints/fba_articles.py
  • backend/service_multi-repricer/app/api/v1/endpoints/repricer_articles.py

Notes for operators

  • After deployment, monitor base sync logs; process_sync_fba_skus will report updated_count reflecting DB-updated stock rows even when external calls return empty lists.