Skip to content

Commit

Permalink
[FIX] pms-api-rest: fix issues @ endpoint routers for create massive …
Browse files Browse the repository at this point in the history
…changes and update (pricelist items & av. plan items)
  • Loading branch information
miguelpadin authored and DarioLodeiros committed Oct 9, 2023
1 parent 53fdeae commit 22578db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pms_api_rest/services/pms_availability_plan_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _create_or_update_avail_plan_rules(self, pms_avail_plan_rules_info):
[
(
[
"/<int:availability_plan_id>/availability-plan-rules",
"/p/<int:availability_plan_id>/availability-plan-rules",
],
"PATCH",
)
Expand All @@ -255,7 +255,7 @@ def create_availability_plan_rule(self, availability_plan_id, pms_avail_plan_rul
[
"/batch-changes",
],
"PATCH",
"POST",
)
],
input_param=Datamodel("pms.availability.plan.rules.info", is_list=False),
Expand Down
4 changes: 2 additions & 2 deletions pms_api_rest/services/pms_pricelist_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def create_pricelist_item(self, pricelist_id, pms_pricelist_item_info):
[
(
[
"/<int:pricelist_id>/pricelist-items",
"/p/<int:pricelist_id>/pricelist-items",
],
"PATCH",
)
Expand All @@ -220,7 +220,7 @@ def create_pricelist_item(self, pricelist_id, pms_pricelist_item_info):
[
"/batch-changes",
],
"PATCH",
"POST",
)
],
input_param=Datamodel("pms.pricelist.items.info", is_list=False),
Expand Down

0 comments on commit 22578db

Please sign in to comment.