Proper model layer

This commit is contained in:
2025-08-08 12:54:42 +01:00
parent f0ca0051b6
commit e76261d5d5
31 changed files with 1098 additions and 968 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ func createCategory(c *gin.Context) {
}
func updateCategory(c *gin.Context) {
categoryID, err := strconv.ParseInt(c.Param("id"), 10, 16)
categoryID, err := expenses.ParseID(c.Param("id"))
if err != nil {
NotFoundView(c, "No such category")
return
@@ -97,7 +97,7 @@ func updateCategory(c *gin.Context) {
}
func deleteCategory(c *gin.Context) {
categoryID, err := strconv.ParseInt(c.Param("id"), 10, 16)
categoryID, err := expenses.ParseID(c.Param("id"))
if err != nil {
NotFoundView(c, "No such category")
return