Renaming Collection CurrentFirmModel to CurrentFirm
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user