ACM-Thapar / ACM-Thapar/opensource-bootcamp-1

DELETE /todos/:id is not deleting items

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The delete route accepts an :id parameter, but the code inside attempts to destructure todoId from req.params. Since the parameter names don't match, the ID is undefined and nothing gets deleted. Expected Behavior: The code should use req.params.id to match the route definition

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.