Skip to content

Commit

Permalink
fix(related): convert related_id to int (#341)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryu Juheon <[email protected]>
  • Loading branch information
ombe1229 and SaidBySolo authored Jan 22, 2023
1 parent 59ef1d4 commit 967ff43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions heliotrope/domain/related.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class Related:
id: int = field(init=False)
related_id: int

def __post_init__(self) -> None:
self.related_id = int(self.related_id)

def to_id(self) -> int:
return self.related_id

Expand Down

0 comments on commit 967ff43

Please sign in to comment.