xchwan commented on code in PR #76583:
URL: https://github.com/apache/airflow/pull/76583#discussion_r4492698232


##########
airflow-core/src/airflow/api_fastapi/core_api/security.py:
##########
@@ -648,7 +651,9 @@ async def inner(
                 )
             # Select the id alongside dag_id: a NULL dag_id and a missing row 
both come back
             # as None from a bare ``Log.dag_id`` scalar, and they authorize 
differently.
-            row = session.execute(select(Log.id, Log.dag_id).where(Log.id == 
event_log_id)).one_or_none()
+            row = (
+                await session.execute(select(Log.id, Log.dag_id).where(Log.id 
== event_log_id))

Review Comment:
   will fix and test after 76493 merge



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to