Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMaster482 committed Dec 24, 2023
1 parent 803f85c commit 43f4e47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/api/init/app/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func Init(db *pgxpool.Pool, redis *redis.Client, log *logger.Logger) *mux.Router
csrfMiddlewear := middleware.NewCSRFMiddleware(csrfUsecase, *log)

userHandler := userDelivery.NewHandler(userUsecase, *log)
transactionHandler := transactionDelivery.NewHandler(transactionUsecase, *log)
transactionHandler := transactionDelivery.NewHandler(transactionUsecase, userUsecase, *log)
categoryHandler := categoryDelivary.NewHandler(categortClient, *log)
csrfHandler := csrfDelivery.NewHandler(csrfUsecase, *log)
accountHandler := accountDelivery.NewHandler(accountClient, *log)
Expand Down
6 changes: 3 additions & 3 deletions internal/common/http/request_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ func GetIpFromRequest(r *http.Request) (string, error) {
return "", errors.New("IP not found")
}

func GetGoalIdFromRequest(r *http.Request) {
return
}
// func GetGoalIdFromRequest(r *http.Request) {
// return
// }
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (r *UserRep) GetByID(ctx context.Context, userID uuid.UUID) (*models.User,
fmt.Errorf("failed request db %s, %w", UserIDGetByID, err)

}
return nil, nil
return &u, nil
}

func (r *UserRep) GetUserByLogin(ctx context.Context, login string) (*models.User, error) {
Expand Down

0 comments on commit 43f4e47

Please sign in to comment.