Skip to content

Commit 79715e4

Browse files
committed
Fix other case
1 parent ee150ff commit 79715e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible_ai_connect/ai/api/wca/api_key_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def post(self, request, *args, **kwargs):
138138
# See https://issues.redhat.com/browse/AAP-16009
139139
if not request._request.user.organization:
140140
return Response(status=HTTP_400_BAD_REQUEST)
141-
organization: Organization = request._request.user.organization
141+
organization: ExternalOrganization = request._request.user.organization
142142

143143
try:
144144
# Extract API Key from request
@@ -293,7 +293,7 @@ def get(self, request, *args, **kwargs):
293293
# See https://issues.redhat.com/browse/AAP-16009
294294
if not request._request.user.organization:
295295
return Response(status=HTTP_400_BAD_REQUEST)
296-
organization: Organization = request._request.user.organization
296+
organization: ExternalOrganization = request._request.user.organization
297297
try:
298298
# Validate API Key
299299
_md = apps.get_app_config("ai").get_model_pipeline(MetaData)

0 commit comments

Comments
 (0)