From 54393e2e0f82b06b5ed0547e2893c305fa68d638 Mon Sep 17 00:00:00 2001 From: Lisoveliy Date: Wed, 16 Jul 2025 20:51:25 +0300 Subject: [PATCH] fix: fixed HeadHunter API Hook --- JOBot.Backend/Controllers/HeadHunterHookController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JOBot.Backend/Controllers/HeadHunterHookController.cs b/JOBot.Backend/Controllers/HeadHunterHookController.cs index 27e9310..1ba1e24 100644 --- a/JOBot.Backend/Controllers/HeadHunterHookController.cs +++ b/JOBot.Backend/Controllers/HeadHunterHookController.cs @@ -10,9 +10,9 @@ public class HeadHunterHookController(HeadHunterService hhService) { [HttpGet] - public async Task Get(int userId, string? error, string authorizationCode) + public async Task 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 для продолжения."),