diff --git a/agents-api/agents_api/queries/executions/get_paused_execution_token.py b/agents-api/agents_api/queries/executions/get_paused_execution_token.py index 677fd91a3..46344708a 100644 --- a/agents-api/agents_api/queries/executions/get_paused_execution_token.py +++ b/agents-api/agents_api/queries/executions/get_paused_execution_token.py @@ -6,9 +6,10 @@ from ...common.utils.db_exceptions import common_db_exceptions from ..utils import pg_query, rewrap_exceptions, wrap_in_class +# FIXME: We should use latest_transitions instead of transitions # Query to get a paused execution token get_paused_execution_token_query = """ -SELECT * FROM latest_transitions +SELECT * FROM transitions WHERE execution_id = $1 AND type = 'wait'