Fix create recipe SQL bug

This commit is contained in:
Jeremy Ruston 2024-01-05 15:37:48 +00:00
parent 3f1f7c7ef7
commit 1eed61397b
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ SqlTiddlerStore.prototype.createRecipe = function(recipename,bagnames) {
SELECT r.recipe_id, b.bag_id, j.key as position
FROM recipes r
JOIN bags b
LEFT JOIN json_each($bag_names) AS j ON j.value = b.bag_name
INNER JOIN json_each($bag_names) AS j ON j.value = b.bag_name
WHERE r.recipe_name = $recipe_name
`,{
recipe_name: recipename,