Server changes
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Binary file not shown.
@@ -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 %>">
|
||||
|
||||
Reference in New Issue
Block a user