Improve handling of context
This commit is contained in:
@ -22,7 +22,7 @@ func (h *Handler) importYNAB(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
ynab, err := postgres.NewYNABImport(h.Service.DB, budgetUUID)
|
||||
ynab, err := postgres.NewYNABImport(c.Request.Context(), h.Service.DB, budgetUUID)
|
||||
if err != nil {
|
||||
c.AbortWithError(http.StatusInternalServerError, err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user