hacksu / hacksu/kenthackenough

Deleting a ticket that has already been deleted crashes the server.

Aperta
#53 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug Good First Issue help wanted
Lingua principale
JavaScript
Stelle
6
Fork
11
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

```

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.