This commit is contained in:
Yanislav Igonin 2021-09-01 18:51:01 +03:00
parent 54a201d0a8
commit c300def2cc

View File

@ -77,9 +77,6 @@ func (r *PostsRepository) Create(p Post) (int, error) {
context.TODO(), sql, p.IsParent, p.ParentID, p.Title, p.Text, p.IsSage,
)
}
if err != nil {
return 0, nil
}
createdPost := new(Post)
row.Scan(&createdPost.ID)