Skip to content

Commit

Permalink
Dienstag 12:55
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hornburger committed Jan 16, 2024
1 parent 39a24e5 commit 6a5c2cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/datenstrukturen/projektpunktestruktur_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ const Projektpunktshema = new mongoose.Schema({
export { IProjektpunktestruktur, Projektpunktshema };


// Hello Wolrd

6 changes: 3 additions & 3 deletions src/routes/projektpunkteerouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ export class ProjektpunkteroutsClass {

if(result !== null) {

res.status(200).send({ message: 'Saved: ' + data.Aufgabe, Projektpunkt: data });
res.status(200).send({ message: 'Saved: ' + data.Aufgabe, Projektpunkt: result._doc });
}
else {

res.status(404).send({ message: 'Projektpunkt not found.', data: null });
res.status(404).send({ message: 'Projektpunkt not found.', Projektpunkt: null });
}

}).catch((error) => {
Expand Down Expand Up @@ -105,7 +105,7 @@ export class ProjektpunkteroutsClass {

this.projektpunkterouter.post('/', (req: Request, res: Response) => {

// POST ist für neuen Eintrag
// POST ist für neuen Projektpunkt Eintrag

console.log('Projektpunkt POST');

Expand Down

0 comments on commit 6a5c2cb

Please sign in to comment.