fix meilisearch
This commit is contained in:
@@ -3,6 +3,7 @@ package routesrepo
|
||||
import (
|
||||
"git.ma-al.com/goc_daniel/b2b/app/db"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/model"
|
||||
"git.ma-al.com/goc_daniel/b2b/app/utils/nullable"
|
||||
)
|
||||
|
||||
type UIRoutesRepo interface {
|
||||
@@ -18,7 +19,7 @@ func New() UIRoutesRepo {
|
||||
|
||||
func (p *RoutesRepo) GetRoutes(langId uint) ([]model.Route, error) {
|
||||
routes := []model.Route{}
|
||||
err := db.DB.Find(&routes).Error
|
||||
err := db.DB.Find(&routes, model.Route{Active: nullable.GetNil(true)}).Error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user