We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1c99b commit d347c4cCopy full SHA for d347c4c
controllers/dashboard_controller.js
@@ -7,7 +7,7 @@ const dashboardGetRequest = async (req, res) => {
7
8
if (userInfo === null) return res.redirect('/host');
9
10
- const roomList = await Room.find({}, {
+ const roomList = await Room.find({ 'ownerId': userInfo._id }, {
11
'_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
12
});
13
0 commit comments