Skip to content

Commit

Permalink
Refactor(model/actor): add aliases to search result
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Dec 29, 2023
1 parent de21b9d commit 851b2f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type ActorSearchResult struct {
Name string `json:"name"`
Provider string `json:"provider"`
Homepage string `json:"homepage"`
Aliases pq.StringArray `json:"aliases,omitempty"`
Images pq.StringArray `json:"images"`
}

Expand Down Expand Up @@ -55,6 +56,7 @@ func (a *ActorInfo) ToSearchResult() *ActorSearchResult {
Name: a.Name,
Provider: a.Provider,
Homepage: a.Homepage,
Aliases: a.Aliases,
Images: a.Images,
}
}

0 comments on commit 851b2f5

Please sign in to comment.