Skip to content

Commit

Permalink
[IMP] pms-api-rest: add room_type_id @ room service
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpadin committed Nov 30, 2021
1 parent e60cf71 commit 788e56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pms_api_rest/datamodels/pms_room_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ class PmsRoomInfo(Datamodel):
_name = "pms.room.info"
id = fields.Integer(required=False, allow_none=True)
name = fields.String(required=False, allow_none=True)
roomTypeId = fields.Integer(required=False, allow_none=True)
1 change: 1 addition & 0 deletions pms_api_rest/services/room_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def get_rooms(self, room_search_param):
PmsRoomInfo(
id=room.id,
name=room.name,
roomTypeId=room.room_type_id,
)
)
return result_rooms

0 comments on commit 788e56c

Please sign in to comment.