Fix supplier GraphQL query to camelCase
This commit is contained in:
@@ -120,37 +120,37 @@ def fetch_supplier_from_exchange(supplier_uuid: str | None, team_uuid: str | Non
|
||||
if supplier_uuid:
|
||||
query = """
|
||||
query GetSupplier($uuid: String!) {
|
||||
get_supplier_profile(uuid: $uuid) {
|
||||
getSupplierProfile(uuid: $uuid) {
|
||||
uuid
|
||||
team_uuid
|
||||
teamUuid
|
||||
name
|
||||
country
|
||||
country_code
|
||||
countryCode
|
||||
latitude
|
||||
longitude
|
||||
is_verified
|
||||
isVerified
|
||||
}
|
||||
}
|
||||
"""
|
||||
variables = {"uuid": supplier_uuid}
|
||||
response_key = "get_supplier_profile"
|
||||
response_key = "getSupplierProfile"
|
||||
else:
|
||||
query = """
|
||||
query GetSupplierByTeam($team_uuid: String!) {
|
||||
get_supplier_profile_by_team(team_uuid: $team_uuid) {
|
||||
query GetSupplierByTeam($teamUuid: String!) {
|
||||
getSupplierProfileByTeam(teamUuid: $teamUuid) {
|
||||
uuid
|
||||
team_uuid
|
||||
teamUuid
|
||||
name
|
||||
country
|
||||
country_code
|
||||
countryCode
|
||||
latitude
|
||||
longitude
|
||||
is_verified
|
||||
isVerified
|
||||
}
|
||||
}
|
||||
"""
|
||||
variables = {"team_uuid": team_uuid}
|
||||
response_key = "get_supplier_profile_by_team"
|
||||
variables = {"teamUuid": team_uuid}
|
||||
response_key = "getSupplierProfileByTeam"
|
||||
|
||||
try:
|
||||
with httpx.Client(timeout=10) as client:
|
||||
|
||||
Reference in New Issue
Block a user