This commit is contained in:
@@ -130,7 +130,7 @@ func (r *postRepository) InsertMany(ctx context.Context, posts ...*models.Post)
|
||||
}
|
||||
|
||||
logId := posts[0].LogID
|
||||
for _, post := range posts[1:] {
|
||||
for _, post := range posts {
|
||||
if post.LogID != logId {
|
||||
return nil, repositories.ErrParentMismatch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user