Renaming Collection CurrentFirmModel to CurrentFirm

This commit is contained in:
2025-05-04 00:03:43 +02:00
parent a9e9f97c14
commit b542fd40a6
3 changed files with 8 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ from fastapi import HTTPException, Depends
from hub.auth import get_current_user
from firm.current_firm import CurrentFirmModel, Partner
from firm.current_firm import CurrentFirm, Partner
from firm.db import get_db_client
from firm.entity.models import Entity
@@ -16,7 +16,7 @@ class Registry:
self.instance = instance
self.firm = firm
self.current_firm = CurrentFirmModel.get_current(self.db)
self.current_firm = CurrentFirm.get_current(self.db)
async def set_user(self, user):
for firm in user.firms: