diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 17:40:49 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-10-17 17:40:49 +0200 |
commit | 650053446d18424500ae6330b5ad0da81fa86373 (patch) | |
tree | 248fc9099a3acb7308621af6fba90dea1d99b852 /pages/pages_templ.go | |
parent | e6e3f258c519fdef01d1654a50b15335b57c4153 (diff) | |
download | gosten-650053446d18424500ae6330b5ad0da81fa86373.tar.gz gosten-650053446d18424500ae6330b5ad0da81fa86373.tar.bz2 gosten-650053446d18424500ae6330b5ad0da81fa86373.zip |
SQL: Fetch * instead of specific columns for simplicity
Diffstat (limited to 'pages/pages_templ.go')
-rw-r--r-- | pages/pages_templ.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |