fix: address code review issues — nutriscore field name, cache write isolation, missing rate limiter, dead props

This commit is contained in:
Antoni Nuñez Romeu
2026-07-13 15:46:47 +02:00
parent 731b51ff48
commit 6fa12b12d9
4 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -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) {