Server changes

This commit is contained in:
2026-08-29 12:55:11 +00:00
parent faf7f7bc6f
commit 12bac58cb0
7 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
PORT=3000
PORT=3010
NODE_ENV=development
@@ -8,4 +8,4 @@ DATABASE=database.sqlite
OPENAI_API_KEY=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
OPENAI_MODEL=gpt-5.4-mini
OPENAI_MODEL=gpt-5.4-mini
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "pantryhub",
"version": "1.0.0",
"description": "PantryHub - Realtime boodschappenapp",
"private": true,
"private": false,
"main": "app.js",
"scripts": {
"start": "node app.js",
+3 -1
View File
@@ -32,7 +32,9 @@ class ShoppingListRepository {
WHERE shopping_list_items.list_id = ?
AND products.household_id = ?
ORDER BY shopping_list_items.checked ASC,
shopping_list_items.sort_order ASC,
categories.name ASC,
products.name ASC,
shopping_list_items.sort_order ASC,
shopping_list_items.created_at ASC
`).all(listId, householdId);
}
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -30,7 +30,7 @@
<strong<% if (item.checked) { %> style="text-decoration: line-through"<% } %>>
<%= item.product_name %>
</strong>
<% if (item.amount !== 1) { %><span class="badge bg-info"><%= item.amount %></span><% } %>
<% if (item.amount !== 1) { %><span class="badge bg-info text-white"><%= item.amount %></span><% } %>
<div class="small text-secondary"><%= item.category_icon || "" %> <%= item.category_name || "Geen categorie" %></div>
</div>
<form class="delete-item-form" method="post" action="/lists/<%= list.id %>/items/<%= item.id %>">