Fix cook history ordering: show newest entries first
Build and Deploy / build-and-deploy (push) Successful in 19m31s

fetchAllEntries had ORDER BY cooked_date ASC but the doc comment
claimed 'newest first'. Changed to DESC to match fetchEntries
behavior and fix the cook-history page (most recent at top).
This commit is contained in:
2026-07-08 08:59:13 -04:00
parent 506de6c4d8
commit 78612eaa06
+1 -1
View File
@@ -131,4 +131,4 @@ fetchAllEntries conn =
SQL.query_
conn
"SELECT id, recipe_filename, cooked_date, comment, created_at \
\ FROM cook_log ORDER BY cooked_date ASC, id DESC"
\ FROM cook_log ORDER BY cooked_date DESC, id DESC"