|
|
@ -32,8 +32,8 @@ func (r *logResolver) Characters(ctx context.Context, log *models.Log) ([]*model |
|
|
|
} |
|
|
|
|
|
|
|
characters2 := make([]*models.Character, len(characters)) |
|
|
|
for i, character := range characters { |
|
|
|
characters2[i] = &character |
|
|
|
for i := range characters { |
|
|
|
characters2[i] = &characters[i] |
|
|
|
} |
|
|
|
|
|
|
|
return characters2, nil |
|
|
@ -46,8 +46,8 @@ func (r *logResolver) Posts(ctx context.Context, log *models.Log, kinds []string |
|
|
|
} |
|
|
|
|
|
|
|
posts2 := make([]*models.Post, len(posts)) |
|
|
|
for i, post := range posts { |
|
|
|
posts2[i] = &post |
|
|
|
for i := range posts { |
|
|
|
posts2[i] = &posts[i] |
|
|
|
} |
|
|
|
|
|
|
|
return posts2, nil |
|
|
|