Files
CMS/src/CMSMicroservice.Application/ProductsCQ
masoodafar-web bc710fdb7b
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m52s
feat: auto-create inventory records for new products + migration worker
- CreateNewProductsCommandHandler: inject IInventoryService, auto-init
  inventory record with qty=0 when a new regular product is created
  (DiscountProduct handler already had this)
- InventoryInitializerService: one-time BackgroundService that runs on
  startup, finds existing products without InventoryItem records, and
  creates them (migration for legacy products)
- Register InventoryInitializerService in DI
2026-02-18 00:42:41 +03:30
..