Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 4a4ee56

Browse files
feat: include userLimitations in public item result
1 parent b359ae3 commit 4a4ee56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/items/public-item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports.getItem = function (req, res, next) {
1616
subQuery.push({"status": "cancelled"});
1717
query["$or"] = subQuery;
1818

19-
const includeFields = "hashId title mainPhoto source attributes.type attributes.price attributes.rooms attributes.size attributes.sharedRooms attributes.availability.begin attributes.availability.end address.location address.district address.city address.country itemDetail.otherPhotos";
19+
const includeFields = "hashId title mainPhoto source attributes.type attributes.price attributes.rooms attributes.size attributes.sharedRooms attributes.availability.begin attributes.availability.end address.location address.district address.city address.country itemDetail.otherPhotos userLimitations";
2020

2121
Item.findOne(query).lean().select(includeFields).populate(populateFields).exec(function (err, filteredItem) {
2222
if (err) {

0 commit comments

Comments
 (0)