Skip to content

Commit

Permalink
Merge pull request #13 from shivamg9/develop
Browse files Browse the repository at this point in the history
Added company_id field in PartnerORM
  • Loading branch information
shibu-narayanan authored Mar 20, 2024
2 parents 4f9f8bf + 05d8ccf commit 6ced2e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/openg2p_portal_api/models/orm/partner_orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class PartnerORM(BaseORMModelWithId):
birth_place: Mapped[str] = mapped_column()
notification_preference: Mapped[str] = mapped_column()
phone: Mapped[str] = mapped_column()
company_id: Mapped[Optional[int]] = mapped_column()

reg_ids: Mapped[Optional[List[RegIDORM]]] = relationship(back_populates="partner")

Expand Down
1 change: 1 addition & 0 deletions src/openg2p_portal_api/services/partner_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async def check_and_create_partner(
"is_registrant": True,
"is_group": False,
"active": True,
"company_id":1,
}
partner_dict["name"] = self.create_partner_process_name(
partner_dict["family_name"],
Expand Down

0 comments on commit 6ced2e7

Please sign in to comment.