79668053

Date: 2025-06-16 18:22:27
Score: 1
Natty:
Report link

use this middleware at first of code

// fix edit request query and make it allow for edit this in new version of express
app.use((req, res, next) => {
  Object.defineProperty(req, 'query', {
    ...Object.getOwnPropertyDescriptor(req, 'query'),
    value: req.query,
    writable: true,
  });
  next();
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammed Sersawy