Skip to content

Commit 439bbb2

Browse files
committed
minor fix for jsdoc type warning
1 parent 91fd74a commit 439bbb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/booklendings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ router.get('', async (req, res) => {
2828
self: '/api/v1/booklendings/' + dbEntry._id,
2929
student: {
3030
self: '/api/v1/students/' + dbEntry.student?._id,
31-
email: dbEntry.student?.email
31+
email: dbEntry.student?.["email"]
3232
},
3333
book: {
3434
self: '/api/v1/books/' + dbEntry.book?._id,
35-
title: dbEntry.book?.title
35+
title: dbEntry.book?.["title"]
3636
}
3737
};
3838
});

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ app.locals.db = mongoose.connect( process.env.DB_URL )
1717
console.log("Connected to Database");
1818

1919
app.listen(port, () => {
20-
console.log(`Server listening on port ${port}`);
20+
console.log(`Server listening on http://localhost:${port}`);
2121
});
2222

2323
});

0 commit comments

Comments
 (0)