Improve handling of context
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
||||
|
||||
func (h *Handler) dashboard(c *gin.Context) {
|
||||
userID := c.MustGet("token").(budgeteer.Token).GetID()
|
||||
budgets, err := h.Service.BudgetsForUser(userID)
|
||||
budgets, err := h.Service.DB.GetBudgetsForUser(c.Request.Context(), userID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user