diff --git a/backend/handlers/views.go b/backend/handlers/views.go index d88c50d..ab75386 100644 --- a/backend/handlers/views.go +++ b/backend/handlers/views.go @@ -68,7 +68,10 @@ func UpdateView(c *fiber.Ctx) error { view := types.View{ID: id} if err := c.BodyParser(&view); err != nil { - return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{"error": "Cannot parse request"}) + return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{ + "error": "Cannot parse request", + "trace": fmt.Sprint(err), + }) } count, err := db.UpdateView(view) diff --git a/backend/types/view.go b/backend/types/view.go index 851d6cd..cf8b1a4 100644 --- a/backend/types/view.go +++ b/backend/types/view.go @@ -1,11 +1,11 @@ package types type View struct { - ID int `json:"id"` - ProjectID int `json:"project_id"` - Title string `json:"title"` - PrimaryTagID *int `json:"primary_tag_id"` - SecondaryTagID *int `json:"secondary_tag_id"` - SortTagID *int `json:"sort_tag_id"` - SortDirection *string `json:"sort_direction"` + ID int `json:"id"` + ProjectID int `json:"project_id"` + Title string `json:"title"` + PrimaryTagID *int `json:"primary_tag_id"` + SecondaryTagID *int `json:"secondary_tag_id"` + SortTagID *int `json:"sort_tag_id"` + SortDirection *int `json:"sort_direction"` } diff --git a/frontend/src/components/project/groupMenu.svelte b/frontend/src/components/project/card/header/menus/group_menu.svelte similarity index 92% rename from frontend/src/components/project/groupMenu.svelte rename to frontend/src/components/project/card/header/menus/group_menu.svelte index 7eb7805..9779b2b 100644 --- a/frontend/src/components/project/groupMenu.svelte +++ b/frontend/src/components/project/card/header/menus/group_menu.svelte @@ -1,5 +1,5 @@ -