PricePinion / PricePinion-Backend

This repo is the backend for PricePinion.
https://pricepinion-backend.azurewebsites.net/
0 stars 2 forks source link

Avoid duplicate adding of products to the save for later. #39

Closed maslindc2 closed 4 months ago

maslindc2 commented 4 months ago

add a condition in the backend logic for saveforlater, which checks that we insert a product into the SFL records only if the same product ID does not exist. If the product exists already, then return an appropriate response which allows frontend to handle that scenario and display the warning 'product already exists in SFL' .