hotfix: balance_up not recognizing uuid as a valid argument
This commit is contained in:
		
							parent
							
								
									bba801f2d2
								
							
						
					
					
						commit
						a42d94779c
					
				@ -328,6 +328,9 @@ def ep_balance_up():
 | 
			
		||||
    if 'user_id' in body:
 | 
			
		||||
        body.update({'user_uuid': 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:
 | 
			
		||||
        return {}, 403
 | 
			
		||||
@ -358,6 +361,9 @@ def ep_balance_get():
 | 
			
		||||
    if 'user_id' in body:
 | 
			
		||||
        body.update({'user_uuid': 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:
 | 
			
		||||
        return {}, 403
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user