fix: error clicked when create new news
This commit is contained in:
parent
11051ae89c
commit
990026cece
@ -37,6 +37,7 @@ func (i *impl) Create(spec newsdomain.NewsReq, staffId string) error {
|
|||||||
AuthorID: staffId,
|
AuthorID: staffId,
|
||||||
Tags: tags,
|
Tags: tags,
|
||||||
Categories: categories,
|
Categories: categories,
|
||||||
|
Clicked: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := i.newsRepo.Create(newSpec); err != nil {
|
if err := i.newsRepo.Create(newSpec); err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user