From 650053446d18424500ae6330b5ad0da81fa86373 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 17 Oct 2024 17:40:49 +0200 Subject: SQL: Fetch * instead of specific columns for simplicity --- pages/pages_templ.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/pages_templ.go') diff --git a/pages/pages_templ.go b/pages/pages_templ.go index 263d903..fe1ad49 100644 --- a/pages/pages_templ.go +++ b/pages/pages_templ.go @@ -126,7 +126,7 @@ func index(user string) templ.Component { }) } -func recur(rows []model.GetRecurExpensesRow) templ.Component { +func recur(rows []model.RecurExpense) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { @@ -196,7 +196,7 @@ func recur(rows []model.GetRecurExpensesRow) templ.Component { }) } -func categories(rows []model.GetCategoriesOrderedRow) templ.Component { +func categories(rows []model.Category) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { -- cgit v1.2.3-70-g09d2