Remove unused code #48

Merged
jacob1123 merged 5 commits from cleanup into master 2022-04-06 22:18:59 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit e8849aa45a - Show all commits

View File

@ -69,5 +69,5 @@ func (h *Handler) editAccount(c *gin.Context) {
return
}
h.returnBudgetingData(c, account.BudgetID)
h.getBudget(c, account.BudgetID)
}

View File

@ -126,7 +126,7 @@ type BudgetingResponse struct {
Budget postgres.Budget
}
func (h *Handler) budgeting(c *gin.Context) {
func (h *Handler) budget(c *gin.Context) {
budgetID := c.Param("budgetid")
budgetUUID, err := uuid.Parse(budgetID)
if err != nil {
@ -134,10 +134,10 @@ func (h *Handler) budgeting(c *gin.Context) {
return
}
h.returnBudgetingData(c, budgetUUID)
h.getBudget(c, budgetUUID)
}
func (h *Handler) returnBudgetingData(c *gin.Context, budgetUUID uuid.UUID) {
func (h *Handler) getBudget(c *gin.Context, budgetUUID uuid.UUID) {
budget, err := h.Service.GetBudget(c.Request.Context(), budgetUUID)
if err != nil {
c.AbortWithError(http.StatusNotFound, err)