Add bulk price update endpoint by abmendez · Pull Request #21 · hemnet/nodejs-assignment
Description:
Added new endpoint to update multiple package prices at once. This will save a lot of time for the product team when they need to adjust pricing for campaigns.
Changes:
- Added
bulkUpdatePricescontroller function incontrollers/package.controller.ts - Added route in
routes/package.routes.ts - Uses existing
updatePackagePriceservice method for each package
Testing:
- Tested with Postman using 3 packages
- All prices updated successfully
- Verified price history was created for each package
Related Ticket: FEAT-2345