Rename budgeting to budget
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Jan Bader 2022-04-06 20:01:41 +00:00
parent c9f67ae9b9
commit e8849aa45a
2 changed files with 4 additions and 4 deletions

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)