Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/api/routes/statistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
get_async_db,
get_current_active_user,
get_current_active_user_from_clerk,
get_user_by_api_key,
)
from app.models.user import User
from app.models.usage_tracker import UsageTracker
Expand All @@ -28,7 +29,7 @@
# I want a query parameter called "offset: <int>" and "limit: <int>"
@router.get("/usage/realtime", response_model=list[UsageRealtimeResponse])
async def get_usage_realtime(
current_user: User = Depends(get_current_active_user),
current_user: User = Depends(get_user_by_api_key),
db: AsyncSession = Depends(get_async_db),
offset: int = Query(0, ge=0),
limit: int = Query(10, ge=1),
Expand Down
Loading