In app.put route only else part is running on POSTMAN where i am wrong i don’t understand
app.put('/api/quotes/:id', (req, res, next) => {
const quote = quotes.find(quote => quote.id === req.params.id);
if(quote) {
const index = quotes.indexOf(quote);
quote.quote = req.query.quote;
quote.person = req.query.person;
quotes.splice(index, 1, quote);
res.send({"quote": quote});
} else {
res.status(404).send('No member with this id');
}
});