79442031

Date: 2025-02-15 18:34:04
Score: 1
Natty:
Report link
res.status(200).json(randomFoodList);

It sends the response to user but doesn't stops the code execution and when your code is executing further it is returning the response again, that's why you're getting this error

Replace res.status with return res.status

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anant Kumar