Skip to content

Commit

Permalink
More TokenID -> TokenMediaID updates
Browse files Browse the repository at this point in the history
  • Loading branch information
radazen committed Oct 20, 2023
1 parent 6681569 commit e2e3ae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions graphql/resolver/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion graphql/resolver/schema.resolvers.helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ func profileImageToModel(ctx context.Context, pfp db.ProfileImage) (model.Profil
func ensProfileImageToModel(ctx context.Context, userID, walletID persist.DBID, url, domain string) (*model.EnsProfileImage, error) {
// Use the token's profile image if the token exists
if token, err := publicapi.For(ctx).Token.GetTokenByEnsDomain(ctx, userID, domain); err == nil {
if tokenMedia, err := publicapi.For(ctx).Token.MediaByTokenID(ctx, token.ID); err == nil {
if tokenMedia, err := publicapi.For(ctx).Token.MediaByMediaID(ctx, token.TokenMediaID); err == nil {
if tokenMedia.Media.ProfileImageURL != "" {
url = string(tokenMedia.Media.ProfileImageURL)
}
Expand Down

0 comments on commit e2e3ae9

Please sign in to comment.