generated from VLADIMIR/template
fix
This commit is contained in:
@@ -42,7 +42,8 @@ func TestChangeUserPasswordAccess(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Embed the real repository so unexpected calls fail rather than silently pass.
|
||||
// Встраиваем настоящий репозиторий, чтобы неожиданные вызовы завершались
|
||||
// ошибкой, а не проходили незаметно.
|
||||
type passwordRepo struct {
|
||||
*users_repo.UsersRepo
|
||||
role string
|
||||
|
||||
@@ -16,7 +16,7 @@ import (
|
||||
"evening_detective_server/internal/repos/teams_repo"
|
||||
)
|
||||
|
||||
// TeamRegistrationHandler принимает webhook Яндекс Форм отдельно от пользовательского JWT.
|
||||
// TeamRegistrationHandler принимает вебхук Яндекс Форм отдельно от пользовательского JWT.
|
||||
func TeamRegistrationHandler(token string, register func(context.Context, int, string, team_service.Registration) (int, error)) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
Reference in New Issue
Block a user