mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
refactor(db): throwaway negative control, team table back on .db
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
114beddf00
commit
b0138d87c4
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ class _PrismaTeamDb(_TeamTables, Protocol):
|
|||
|
||||
class _PrismaClientView(Protocol):
|
||||
@property
|
||||
def replica_db(self) -> _PrismaTeamDb: ...
|
||||
def db(self) -> _PrismaTeamDb: ...
|
||||
|
||||
|
||||
_MEMBERS_WITH_ROLES_ADAPTER: Final = TypeAdapter(list[Member])
|
||||
|
|
@ -88,7 +88,7 @@ class TeamRepository(BaseRepository[LiteLLM_TeamTable]):
|
|||
@property
|
||||
def _db(self) -> _PrismaTeamDb:
|
||||
client: Final[_PrismaClientView] = self.prisma_client
|
||||
return client.replica_db
|
||||
return client.db
|
||||
|
||||
@property
|
||||
def table(self) -> TableActions["prisma_models.LiteLLM_TeamTable"]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue