patch
This commit is contained in:
		
							parent
							
								
									93387d0677
								
							
						
					
					
						commit
						29c1ae8fd5
					
				@ -8,7 +8,7 @@ from .utils import ssl_transport
 | 
			
		||||
 | 
			
		||||
async def get_profile_by_user_id(user_id: UUID, token: str) -> dict:
 | 
			
		||||
    try:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client:
 | 
			
		||||
            response = await client.get(
 | 
			
		||||
                f"{settings.PROFILE_SERVICE}/user_id/{user_id}",
 | 
			
		||||
                headers={"Authorization": f"Bearer {token}"}
 | 
			
		||||
@ -28,7 +28,7 @@ async def get_profile_by_user_id(user_id: UUID, token: str) -> dict:
 | 
			
		||||
 | 
			
		||||
async def get_profiles_by_user_ids(user_ids: List[UUID], token: str, user_id: UUID) -> Dict[str, dict]:
 | 
			
		||||
    try:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client:
 | 
			
		||||
            response = await client.post(
 | 
			
		||||
                f"{settings.PROFILE_SERVICE}/user_ids/internal",
 | 
			
		||||
                headers={"Authorization": f"Bearer {token}"},
 | 
			
		||||
 | 
			
		||||
@ -28,7 +28,7 @@ async def _fetch_current_user(
 | 
			
		||||
    user_agent = request.headers.get("User-Agent", "(unknown)")
 | 
			
		||||
 | 
			
		||||
    try:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0,) as client:
 | 
			
		||||
        async with httpx.AsyncClient(transport=ssl_transport, timeout=5.0) as client:
 | 
			
		||||
            response = await client.post(
 | 
			
		||||
                f"{settings.TOKEN_SERVICE}/decode",
 | 
			
		||||
                json={
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user