ProyectoIntermodular/sync-service
luklpz e501d83c73 fix(sync): push stock immediately on new product creation
ProductSyncService now calls pushInitialStock() after creating a new
product in PrestaShop, so stock is correct without waiting for the next
StockSyncService run. Failures are caught and logged as warnings — the
product mapping is saved as SYNCED regardless, and StockSyncService will
correct any discrepancy on its next scheduled run.

Also applies the PS 8.2.5 false-instead-of-empty-array workaround to
getStockAvailableForProduct(), consistent with getProductByReference().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-18 18:27:17 +02:00
..
.mvn/wrapper feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00
src fix(sync): push stock immediately on new product creation 2026-05-18 18:27:17 +02:00
.gitattributes feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00
.gitignore feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00
.mise.toml fix: pin maven to 3.9.9 via .mise.toml to fix Railway build 2026-05-17 20:16:52 +02:00
mvnw feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00
mvnw.cmd feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00
pom.xml feat: add sync-service Spring Boot middleware 2026-05-14 14:09:46 +02:00