mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
clean
This commit is contained in:
parent
54a201d0a8
commit
c300def2cc
@ -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,
|
context.TODO(), sql, p.IsParent, p.ParentID, p.Title, p.Text, p.IsSage,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
return 0, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
createdPost := new(Post)
|
createdPost := new(Post)
|
||||||
row.Scan(&createdPost.ID)
|
row.Scan(&createdPost.ID)
|
||||||
|
Loading…
Reference in New Issue
Block a user