Skip to content

Commit

Permalink
dummy commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benny-conn committed Aug 23, 2023
1 parent 6136b62 commit 7c7d564
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions graphql/resolver/schema.resolvers.helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,9 +654,9 @@ func postsToConnection(ctx context.Context, posts []db.Post, contractID persist.
edges := make([]*model.PostEdge, len(posts))
for i, post := range posts {

p := post
po := post

cval, _ := p.Caption.Value()
cval, _ := po.Caption.Value()

var caption *string
if cval != nil {
Expand All @@ -666,12 +666,12 @@ func postsToConnection(ctx context.Context, posts []db.Post, contractID persist.
edges[i] = &model.PostEdge{
Node: &model.Post{
HelperPostData: model.HelperPostData{
TokenIDs: p.TokenIds,
AuthorID: p.ActorID,
Mentions: p.Mentions,
TokenIDs: po.TokenIds,
AuthorID: po.ActorID,
Mentions: po.Mentions,
},
CreationTime: &p.CreatedAt,
Dbid: p.ID,
CreationTime: &po.CreatedAt,
Dbid: po.ID,
Tokens: nil, // handled by dedicated resolver
Caption: caption,
Admires: nil, // handled by dedicated resolver
Expand Down

0 comments on commit 7c7d564

Please sign in to comment.