Code clean up. Person and User related is being worked on.
This commit is contained in:
@@ -253,7 +253,7 @@ async def v2_post_event_person_new(
|
||||
|
||||
user_id = None
|
||||
user_obj = None
|
||||
create_user_obj_result = create_user_obj(account_id=account_id_random, user_obj_new=user_obj_new)
|
||||
create_user_obj_result = create_user_obj(account_id=account_id_random, user_dict_obj=user_obj_new)
|
||||
if isinstance(create_user_obj_result, bool):
|
||||
log.debug('Returning False since multiple users were found with the same username.')
|
||||
return mk_resp(data=False)
|
||||
|
||||
@@ -56,7 +56,7 @@ async def post_user_obj_new(
|
||||
if account_id_random := user_obj.account_id_random: pass
|
||||
else: return False
|
||||
|
||||
if create_user_obj_result := create_user_obj(account_id=account_id_random, user_obj_new=user_obj, allow_update=allow_update, avoid_dup_username=avoid_dup_username): pass
|
||||
if create_user_obj_result := create_user_obj(account_id=account_id_random, user_dict_obj=user_obj, allow_update=allow_update, avoid_dup_username=avoid_dup_username): pass
|
||||
else: return mk_resp(data=False, status_code=400, response=commons.response, status_message='The user account was not created. This is likely because that username already exists for this account.')
|
||||
|
||||
if isinstance(create_user_obj_result, int):
|
||||
|
||||
Reference in New Issue
Block a user