Fix ignoring return value
This commit is contained in:
parent
95b1ac5943
commit
8e2a62929e
@ -29,7 +29,11 @@ func (h *Handler) deleteBudget(c *gin.Context) {
|
||||
|
||||
h.clearBudgetData(c, budgetUUID)
|
||||
|
||||
h.Service.DeleteBudget(c.Request.Context(), budgetUUID)
|
||||
err = h.Service.DeleteBudget(c.Request.Context(), budgetUUID)
|
||||
if err != nil {
|
||||
c.AbortWithError(http.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func (h *Handler) clearBudgetData(c *gin.Context, budgetUUID uuid.UUID) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user