fix: filter active in news
This commit is contained in:
@@ -23,8 +23,13 @@ func GetAll(
|
||||
|
||||
category := query.Get("categories")
|
||||
tags := query.Get("tags")
|
||||
activeOnly := query.Get("active")
|
||||
|
||||
news, err = newsSvc.GetAll(category, tags)
|
||||
news, err = newsSvc.GetAll(newsdomain.Filter{
|
||||
Category: category,
|
||||
Tags: tags,
|
||||
Active: activeOnly,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
response.ResponseWithErrorCode(
|
||||
|
||||
Reference in New Issue
Block a user