Select other data for recipe search

This commit is contained in:
Thomas Rubini 2023-01-24 14:50:13 +01:00
parent b52d43ca6f
commit 105189fb7a
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -65,7 +65,10 @@ final class RecipeModel
)
-- get a row per occurrence and sort by occurrences number
select RECIPE.ID, RECIPE.NAME
select RECIPE.ID, RECIPE.NAME,
CONCAT('/recipe/view/', RECIPE.ID) AS RECIPE_LINK,
CONCAT('/static/img/recipes/', RECIPE.ID) AS IMG_LINK,
1 AS NOTE
from CTE
JOIN RECIPE
WHERE CTE.NAME is not null