fix: address code review issues — nutriscore field name, cache write isolation, missing rate limiter, dead props
This commit is contained in:
@@ -601,7 +601,7 @@ app.get('/api/medicines/:medicineId', async (req, res) => {
|
||||
|
||||
// ========== UNIFIED PRODUCT SEARCH ==========
|
||||
|
||||
app.get('/api/products/search', async (req, res) => {
|
||||
app.get('/api/products/search', searchLimiter, async (req, res) => {
|
||||
try {
|
||||
const { q } = req.query;
|
||||
if (!q || q.trim().length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user