This commit is contained in:
2026-10-01 16:42:39 +07:00
parent 5638349623
commit ee15d149bd
31 changed files with 37 additions and 88 deletions
+2 -1
View File
@@ -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
+1 -1
View File
@@ -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")