Add improvements 2
This commit is contained in:
@@ -204,7 +204,7 @@ class TenantMemberRepository(TenantBaseRepository):
|
||||
f"{auth_service_url}/api/v1/auth/users/batch",
|
||||
json={"user_ids": user_ids},
|
||||
timeout=10.0,
|
||||
headers={"X-Internal-Service": "tenant-service"}
|
||||
headers={"x-internal-service": "tenant-service"}
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
@@ -226,7 +226,7 @@ class TenantMemberRepository(TenantBaseRepository):
|
||||
response = await client.get(
|
||||
f"{auth_service_url}/api/v1/auth/users/{user_id}",
|
||||
timeout=5.0,
|
||||
headers={"X-Internal-Service": "tenant-service"}
|
||||
headers={"x-internal-service": "tenant-service"}
|
||||
)
|
||||
if response.status_code == 200:
|
||||
user_data = response.json()
|
||||
@@ -243,7 +243,7 @@ class TenantMemberRepository(TenantBaseRepository):
|
||||
response = await client.get(
|
||||
f"{auth_service_url}/api/v1/auth/users/{user_id}",
|
||||
timeout=5.0,
|
||||
headers={"X-Internal-Service": "tenant-service"}
|
||||
headers={"x-internal-service": "tenant-service"}
|
||||
)
|
||||
if response.status_code == 200:
|
||||
user_data = response.json()
|
||||
|
||||
Reference in New Issue
Block a user