Compare commits
2 Commits
99ef11066d
...
9e4421d8f8
Author | SHA1 | Date | |
---|---|---|---|
9e4421d8f8 | |||
25eb677f7a |
@ -23,8 +23,8 @@ import (
|
||||
"io"
|
||||
|
||||
"github.com/twitchtv/twirp"
|
||||
"go.elara.ws/lure-web/lure-backend/internal/api"
|
||||
"go.elara.ws/logger/log"
|
||||
"go.elara.ws/lure-web/backend/internal/api"
|
||||
"go.elara.ws/lure/pkg/search"
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
@ -33,10 +33,10 @@ type lureWebAPI struct{}
|
||||
|
||||
func (l lureWebAPI) Search(ctx context.Context, req *api.SearchRequest) (*api.SearchResponse, error) {
|
||||
opts := search.Options{
|
||||
Filter: search.Filter(req.FilterType),
|
||||
SortBy: search.SortBy(req.SortBy),
|
||||
Limit: req.Limit,
|
||||
Query: req.Query,
|
||||
Filter: search.Filter(req.FilterType),
|
||||
SortBy: search.SortBy(req.SortBy),
|
||||
Limit: req.Limit,
|
||||
Query: req.Query,
|
||||
}
|
||||
|
||||
if req.FilterValue != nil {
|
||||
|
@ -28,10 +28,10 @@ import (
|
||||
"github.com/go-chi/chi/v5"
|
||||
"github.com/twitchtv/twirp"
|
||||
"go.elara.ws/logger"
|
||||
"go.elara.ws/lure-web/lure-backend/internal/api"
|
||||
"go.elara.ws/logger/log"
|
||||
"go.elara.ws/lure/pkg/repos"
|
||||
"go.elara.ws/lure-web/backend/internal/api"
|
||||
lurelog "go.elara.ws/lure/pkg/log"
|
||||
"go.elara.ws/lure/pkg/repos"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
Loading…
Reference in New Issue
Block a user