hotfix: balance_up not recognizing uuid as a valid argument

This commit is contained in:
ІО-23 Шмуляр Олег 2024-12-28 19:26:27 +02:00
parent bba801f2d2
commit a42d94779c
1 changed files with 6 additions and 0 deletions

View File

@ -328,6 +328,9 @@ def ep_balance_up():
if 'user_id' in body: if 'user_id' in body:
body.update({'user_uuid': body['user_id']}) body.update({'user_uuid': body['user_id']})
del body['user_id'] del body['user_id']
elif 'uuid' in body:
body.update({'user_uuid': body['uuid']})
del body['uuid']
if 'user_uuid' not in body: if 'user_uuid' not in body:
return {}, 403 return {}, 403
@ -358,6 +361,9 @@ def ep_balance_get():
if 'user_id' in body: if 'user_id' in body:
body.update({'user_uuid': body['user_id']}) body.update({'user_uuid': body['user_id']})
del body['user_id'] del body['user_id']
elif 'uuid' in body:
body.update({'user_uuid': body['uuid']})
del body['uuid']
if 'user_uuid' not in body: if 'user_uuid' not in body:
return {}, 403 return {}, 403