diff --git a/litellm/proxy/management_endpoints/common_daily_activity.py b/litellm/proxy/management_endpoints/common_daily_activity.py index d03de9f2e21..f75da7a4d3d 100644 --- a/litellm/proxy/management_endpoints/common_daily_activity.py +++ b/litellm/proxy/management_endpoints/common_daily_activity.py @@ -625,8 +625,8 @@ async def get_user_api_key_filter( api_key: str | None, ) -> list[str]: """Return the key digests that should scope a user activity query.""" - active_keys: Final[Sequence[_UserApiKeyRecord]] = await VerificationTokenRepository(prisma_client).find_by_user_id( - user_id + active_keys: Final[Sequence[_UserApiKeyRecord]] = await VerificationTokenRepository(prisma_client).table.find_many( + where={"user_id": user_id}, ) deleted_keys: Final = await _get_deleted_keys_for_user(prisma_client, user_id) user_api_keys: Final = list(