perf: add opportunity detail read context
This commit is contained in:
@@ -182,8 +182,6 @@ def _select_candidate_doc(conn: Any, opportunity_id: str) -> Optional[Dict[str,
|
||||
|
||||
def get_jasmin_fiscal_sync_preview(opportunity_id: str) -> Dict[str, Any]:
|
||||
"""Read-only preview for fiscal data available in linked Jasmin documents."""
|
||||
ensure_opportunity_schema()
|
||||
ensure_commercial_schema()
|
||||
with engine.begin() as conn:
|
||||
opp = conn.execute(text("""
|
||||
SELECT o.id::text, o.local_customer_id::text, o.title,
|
||||
|
||||
Reference in New Issue
Block a user