Moving things to use the common_route_params. Rewriting most of things order and order_cart related!
This commit is contained in:
@@ -353,11 +353,22 @@ async def get_account_cfg_obj(
|
||||
|
||||
if sys_module:
|
||||
if sys_module == 'membership':
|
||||
membership_cfg_obj = load_account_cfg_obj(account_id=account_id, inc_membership_cfg=True).dict(by_alias=by_alias, exclude_unset=exclude_unset)
|
||||
membership_cfg_obj = load_account_cfg_obj(
|
||||
account_id = account_id,
|
||||
inc_membership_cfg = True
|
||||
).dict(
|
||||
by_alias = commons.by_alias,
|
||||
exclude_unset = commons.exclude_unset
|
||||
)
|
||||
data = membership_cfg_obj
|
||||
return mk_resp(data=data, response=commons.response)
|
||||
else:
|
||||
if account_cfg_obj := load_account_cfg_obj(account_id=account_id).dict(by_alias=by_alias, exclude_unset=exclude_unset):
|
||||
if account_cfg_obj := load_account_cfg_obj(
|
||||
account_id = account_id
|
||||
).dict(
|
||||
by_alias = commons.by_alias,
|
||||
exclude_unset = commons.exclude_unset
|
||||
):
|
||||
data = account_cfg_obj
|
||||
return mk_resp(data=data, response=commons.response)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user