From 54da212c321b6de9cd7b338b5a526714d7c295c5 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Fri, 22 Sep 2023 16:36:38 -0700 Subject: [PATCH] Update LURE dependency --- lure-backend/api.go | 9 +++++---- lure-backend/go.mod | 2 +- lure-backend/go.sum | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lure-backend/api.go b/lure-backend/api.go index b2e86dc..d6d95c6 100644 --- a/lure-backend/api.go +++ b/lure-backend/api.go @@ -33,10 +33,11 @@ type lureWebAPI struct{} func (l lureWebAPI) Search(ctx context.Context, req *api.SearchRequest) (*api.SearchResponse, error) { pkgs, err := search.Search(search.Options{ - Filter: search.Filter(req.FilterType), - SortBy: search.SortBy(req.SortBy), - Limit: req.Limit, - Query: req.Query, + Filter: search.Filter(req.FilterType), + FilterValue: req.FilterValue, + SortBy: search.SortBy(req.SortBy), + Limit: req.Limit, + Query: req.Query, }) return &api.SearchResponse{Packages: searchPkgsToAPI(ctx, pkgs)}, err } diff --git a/lure-backend/go.mod b/lure-backend/go.mod index 6b6d047..c5dd6ae 100644 --- a/lure-backend/go.mod +++ b/lure-backend/go.mod @@ -6,7 +6,7 @@ require ( github.com/go-chi/chi/v5 v5.0.10 github.com/twitchtv/twirp v8.1.3+incompatible go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 - go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042 + go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796 golang.org/x/text v0.13.0 google.golang.org/protobuf v1.31.0 ) diff --git a/lure-backend/go.sum b/lure-backend/go.sum index 7162411..4277f4a 100644 --- a/lure-backend/go.sum +++ b/lure-backend/go.sum @@ -121,8 +121,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1z github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 h1:RVC8XvWo6Yw4HUshqx4TSzuBDScDghafU6QFRJ4xPZg= go.elara.ws/logger v0.0.0-20230421022458-e80700db2090/go.mod h1:qng49owViqsW5Aey93lwBXONw20oGbJIoLVscB16mPM= -go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042 h1:NNaaf58btpzlvuaJWgd43H9UcD7nNEX+ZNFVVNy8/WM= -go.elara.ws/lure v0.0.10-0.20230922223953-02a6104fb042/go.mod h1:xFbBPYZYEmcogIkN+L/GdG4G5/eFFK2h8lHig4YEp94= +go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796 h1:bLADA8yKKN2Ge8GlvYS2mDIhf5bcefrD4odvLEA1QUY= +go.elara.ws/lure v0.0.10-0.20230922233208-1b8c05b25796/go.mod h1:xFbBPYZYEmcogIkN+L/GdG4G5/eFFK2h8lHig4YEp94= go.elara.ws/vercmp v0.0.0-20230622214216-0b2b067575c4 h1:Ep54XceQlKhcCHl9awG+wWP4kz4kIP3c3Lzw/Gc/zwY= go.elara.ws/vercmp v0.0.0-20230622214216-0b2b067575c4/go.mod h1:/7PNW7nFnDR5W7UXZVc04gdVLR/wBNgkm33KgIz0OBk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=