Still migrating to postgres, have to check that everything works and fix stuff

This commit is contained in:
2025-09-02 23:50:19 +01:00
parent 6c5922bb5e
commit 4552b8c969
64 changed files with 1196 additions and 1279 deletions
+1 -4
View File
@@ -4,11 +4,8 @@ import (
"database/sql"
exp "expenses/expenses"
experr "expenses/expenses/errors"
"fmt"
"net/http"
"strconv"
"github.com/gin-gonic/gin"
)
@@ -32,7 +29,7 @@ func typesGlobalPage(c *gin.Context) {
}
func typePage(c *gin.Context) {
typeID, err := strconv.ParseInt(c.Param("id"), 10, 16)
typeID, err := exp.ParseID(c.Param("id"))
if err != nil {
NotFoundView(c, "requested type doesn't exist")
return