Skip to content

Commit

Permalink
server/integrations/plain: fix organization card JSON output
Browse files Browse the repository at this point in the history
This time, `exclude_none`!
  • Loading branch information
frankie567 committed Jan 13, 2025
1 parent 0749dff commit 8a9712f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/polar/integrations/plain/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ async def _get_organization_card(
key=CustomerCardKey.organization,
timeToLiveSeconds=86400,
components=[
component.model_dump(by_alias=True) for component in components
component.model_dump(by_alias=True, exclude_none=True)
for component in components
],
)

Expand Down

0 comments on commit 8a9712f

Please sign in to comment.