Use request context in handlers

This commit is contained in:
Stefan Kostic
2022-02-08 13:36:50 +01:00
parent 0da4b359d6
commit 2748b7f2f3
9 changed files with 13 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ func (controller *CreateUserController) CreateUser(c echo.Context) error {
if err := c.Bind(&body); err != nil {
return err
}
user, err := controller.svc.CreateUser()
user, err := controller.svc.CreateUser(c.Request().Context())
//todo json response
if err != nil {
return err