Deploy: 2025-12-17 16:36
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
This commit is contained in:
@ -11,7 +11,7 @@ import json
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, Optional
|
||||
|
||||
from fastapi import APIRouter, Depends, HTTPException, Query, status
|
||||
from fastapi import APIRouter, HTTPException, Query, status
|
||||
from pydantic import BaseModel, Field
|
||||
from sqlalchemy import and_, select
|
||||
|
||||
@ -58,8 +58,8 @@ def _require_trader_or_higher(sub: Subscription) -> None:
|
||||
async def get_vision(
|
||||
domain: str = Query(..., min_length=3, max_length=255),
|
||||
refresh: bool = Query(False, description="Bypass cache and regenerate"),
|
||||
current_user: CurrentUser = Depends(),
|
||||
db: Database = Depends(),
|
||||
current_user: CurrentUser,
|
||||
db: Database,
|
||||
):
|
||||
sub = await _get_or_create_subscription(db, current_user.id)
|
||||
_require_trader_or_higher(sub)
|
||||
|
||||
Reference in New Issue
Block a user