Remove Repository and use Database instead

This commit is contained in:
2021-12-11 20:18:09 +00:00
parent d5ebf5a5cf
commit e9adc763b2
14 changed files with 42 additions and 53 deletions

View File

@ -23,7 +23,7 @@ func (h *Handler) allAccounts(c *gin.Context) {
return
}
transactions, err := h.Service.DB.GetTransactionsForBudget(c.Request.Context(), budgetUUID)
transactions, err := h.Service.GetTransactionsForBudget(c.Request.Context(), budgetUUID)
if err != nil {
c.AbortWithError(http.StatusInternalServerError, err)
return