diff --git a/deploy/dev/cm.yaml b/deploy/dev/cm.yaml index 7b7c48a4..fb14566e 100644 --- a/deploy/dev/cm.yaml +++ b/deploy/dev/cm.yaml @@ -73,8 +73,10 @@ data: return Response(status=404) attributes = res.json().get("metadata", {}).get("content", {}).get("attributes", []) for d in attributes: - print(d) - if d.get("trait_type") == "xlog_custom_domain" and d.get("value") == domain: - return Response(status=200) + if d.get("trait_type") == "xlog_custom_domain": + print(d) + xlog_custom_domain = d.get("value", "").lower() + if xlog_custom_domain == domain: + return Response(status=200) return Response(status=404) diff --git a/deploy/prod/cm.yaml b/deploy/prod/cm.yaml index b7441470..a54c72c4 100644 --- a/deploy/prod/cm.yaml +++ b/deploy/prod/cm.yaml @@ -73,8 +73,10 @@ data: return Response(status=404) attributes = res.json().get("metadata", {}).get("content", {}).get("attributes", []) for d in attributes: - print(d) - if d.get("trait_type") == "xlog_custom_domain" and d.get("value") == domain: - return Response(status=200) + if d.get("trait_type") == "xlog_custom_domain": + print(d) + xlog_custom_domain = d.get("value", "").lower() + if xlog_custom_domain == domain: + return Response(status=200) return Response(status=404)