Skip to content

Commit d347c4c

Browse files
committed
fixed issues
1 parent 8f1c99b commit d347c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/dashboard_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const dashboardGetRequest = async (req, res) => {
77

88
if (userInfo === null) return res.redirect('/host');
99

10-
const roomList = await Room.find({}, {
10+
const roomList = await Room.find({ 'ownerId': userInfo._id }, {
1111
'_id': 0, 'roomId': 1, 'roomType': 1, 'title': 1, 'description': 1,'location': 1, 'availableFrom': 1, 'availableUpto': 1, 'rating': 1, 'price': 1, 'discount': 1, 'images': 1, 'hidden': 1
1212
});
1313

0 commit comments

Comments
 (0)