diff --git a/src/entities/models/__init__.py b/src/entities/models/__init__.py index 89ec44b..c043bea 100644 --- a/src/entities/models/__init__.py +++ b/src/entities/models/__init__.py @@ -6,7 +6,7 @@ "FinancialInstitutionWithRelationsDto", "FinancialInsitutionDomainDto", "FinancialInsitutionDomainCreate", - "FinanicialInstitutionAssociationDto", + "FinancialInstitutionAssociationDto", "DeniedDomainDao", "DeniedDomainDto", "UserProfile", @@ -40,7 +40,7 @@ FinancialInstitutionWithRelationsDto, FinancialInsitutionDomainDto, FinancialInsitutionDomainCreate, - FinanicialInstitutionAssociationDto, + FinancialInstitutionAssociationDto, DeniedDomainDto, UserProfile, FederalRegulatorDto, diff --git a/src/entities/models/dto.py b/src/entities/models/dto.py index 55f3dea..eb06a73 100644 --- a/src/entities/models/dto.py +++ b/src/entities/models/dto.py @@ -154,5 +154,5 @@ class FinancialInstitutionWithRelationsDto(FinancialInstitutionDto): domains: List[FinancialInsitutionDomainDto] = [] -class FinanicialInstitutionAssociationDto(FinancialInstitutionWithRelationsDto): +class FinancialInstitutionAssociationDto(FinancialInstitutionWithRelationsDto): approved: bool diff --git a/src/routers/institutions.py b/src/routers/institutions.py index 84141b3..347838a 100644 --- a/src/routers/institutions.py +++ b/src/routers/institutions.py @@ -12,7 +12,7 @@ FinancialInstitutionWithRelationsDto, FinancialInsitutionDomainDto, FinancialInsitutionDomainCreate, - FinanicialInstitutionAssociationDto, + FinancialInstitutionAssociationDto, InstitutionTypeDto, AddressStateDto, FederalRegulatorDto, @@ -59,14 +59,14 @@ async def create_institution( return kc_id, db_fi -@router.get("/associated", response_model=List[FinanicialInstitutionAssociationDto]) +@router.get("/associated", response_model=List[FinancialInstitutionAssociationDto]) @requires("authenticated") async def get_associated_institutions(request: Request): user: AuthenticatedUser = request.user email_domain = get_email_domain(user.email) associated_institutions = await repo.get_institutions(request.state.db_session, user.institutions) return [ - FinanicialInstitutionAssociationDto( + FinancialInstitutionAssociationDto( **institution.__dict__, approved=email_domain in [inst_domain.domain for inst_domain in institution.domains], )