1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

Fix create recipe SQL bug

This commit is contained in:
Jeremy Ruston 2024-01-05 15:37:48 +00:00
parent 3f1f7c7ef7
commit 1eed61397b

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,