fix: fixed HeadHunter API Hook

This commit is contained in:
Pavel-Savely Savianok 2025-07-16 20:51:25 +03:00
parent e82cc31b4e
commit 54393e2e0f

View File

@ -10,9 +10,9 @@ public class HeadHunterHookController(HeadHunterService hhService)
{
[HttpGet]
public async Task<IActionResult> Get(int userId, string? error, string authorizationCode)
public async Task<IActionResult> Get(int userId, string? error, string code)
{
var res = await hhService.AuthUser(userId, authorizationCode, error);
var res = await hhService.AuthUser(userId, code, error);
return res switch
{
HeadHunterService.Status.Success => Ok("Авторизация завершена успешно. Вернитесь в Telegram для продолжения."),