account for icon types

This commit is contained in:
Lucy Cifferello
2021-09-06 14:02:59 -06:00
committed by Keagan McClelland
parent eca229116b
commit 72bc7e01ae
4 changed files with 43 additions and 3 deletions

View File

@@ -32,6 +32,8 @@ searchServices category pageItems offset' query = select $ do
`innerJoin` table @ServiceCategory
`on` (\(s :& sc) ->
sc ^. ServiceCategoryServiceId ==. s ^. SAppId)
-- if there is a cateogry, only search in category
-- weight title, short, long (bitcoin should equal Bitcoin Core)
where_ $ sc ^. ServiceCategoryCategoryName ==. val category
&&. ((service ^. SAppDescShort `ilike` (%) ++. val query ++. (%))
||. (service ^. SAppDescLong `ilike` (%) ++. val query ++. (%))