hacksu / hacksu/kenthackenough
Deleting a ticket that has already been deleted crashes the server.
- Lenguaje dominante
- JavaScript
- Estrellas
- 6
- Forks
- 11
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
calling DELETE /tickets/ID after the ticket has been removed crashes the server with the exception
```
TypeError: Cannot read property '_id' of null
at /var/www/kenthackenough/app/tickets/controller.js:78:22
at Query. (/var/www/kenthackenough/node_modules/mongoose/lib/query.js:2120:28)
at /var/www/kenthackenough/node_modules/mongoose/node_modules/kareem/index.js:177:19
at /var/www/kenthackenough/node_modules/mongoose/node_modules/kareem/index.js:109:16
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start in app/tickets/controller.js at line 78 and reproduce DELETE /tickets/ID after the ticket has already been removed. Trace the null result from the ticket lookup and verify that deleting a missing ticket no longer crashes the server. No test file is mentioned in the issue.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- api, backend
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 62/100