Skip to content

Commit

Permalink
Correct misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jcadam14 committed Mar 13, 2024
1 parent 4f2224b commit 9978a8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/entities/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"FinancialInstitutionWithRelationsDto",
"FinancialInsitutionDomainDto",
"FinancialInsitutionDomainCreate",
"FinanicialInstitutionAssociationDto",
"FinancialInstitutionAssociationDto",
"DeniedDomainDao",
"DeniedDomainDto",
"UserProfile",
Expand Down Expand Up @@ -40,7 +40,7 @@
FinancialInstitutionWithRelationsDto,
FinancialInsitutionDomainDto,
FinancialInsitutionDomainCreate,
FinanicialInstitutionAssociationDto,
FinancialInstitutionAssociationDto,
DeniedDomainDto,
UserProfile,
FederalRegulatorDto,
Expand Down
2 changes: 1 addition & 1 deletion src/entities/models/dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,5 @@ class FinancialInstitutionWithRelationsDto(FinancialInstitutionDto):
domains: List[FinancialInsitutionDomainDto] = []


class FinanicialInstitutionAssociationDto(FinancialInstitutionWithRelationsDto):
class FinancialInstitutionAssociationDto(FinancialInstitutionWithRelationsDto):
approved: bool
6 changes: 3 additions & 3 deletions src/routers/institutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
FinancialInstitutionWithRelationsDto,
FinancialInsitutionDomainDto,
FinancialInsitutionDomainCreate,
FinanicialInstitutionAssociationDto,
FinancialInstitutionAssociationDto,
InstitutionTypeDto,
AddressStateDto,
FederalRegulatorDto,
Expand Down Expand Up @@ -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],
)
Expand Down

0 comments on commit 9978a8c

Please sign in to comment.