fix: error clicked when create new news

This commit is contained in:
ericprd 2025-03-24 13:35:46 +08:00
parent 11051ae89c
commit 990026cece

View File

@ -37,6 +37,7 @@ func (i *impl) Create(spec newsdomain.NewsReq, staffId string) error {
AuthorID: staffId,
Tags: tags,
Categories: categories,
Clicked: 0,
}
if err := i.newsRepo.Create(newSpec); err != nil {