feat: test auth full handler and fix liner
All checks were successful
Backend ci / build (push) Successful in 3m48s
Backend ci / build (pull_request) Successful in 3m31s

This commit is contained in:
d3m0k1d
2026-02-12 19:28:22 +03:00
parent 809879971a
commit 3066ceb751
2 changed files with 36 additions and 8 deletions

View File

@@ -30,7 +30,11 @@ func (a *authRepository) Register(ctx context.Context, user storage.UserReg) (in
return 0, err
}
row := a.db.QueryRow("SELECT id FROM users WHERE github_id = ?", user.GithubID)
row.Scan(&id)
err = row.Scan(&id)
if err != nil {
a.logger.Error("error scan: " + err.Error())
return 0, err
}
a.logger.Info("User registered:", "email", user.Email)
return id, nil