fix: fixed HeadHunter API Hook
This commit is contained in:
parent
e82cc31b4e
commit
54393e2e0f
@ -10,9 +10,9 @@ public class HeadHunterHookController(HeadHunterService hhService)
|
|||||||
{
|
{
|
||||||
|
|
||||||
[HttpGet]
|
[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
|
return res switch
|
||||||
{
|
{
|
||||||
HeadHunterService.Status.Success => Ok("Авторизация завершена успешно. Вернитесь в Telegram для продолжения."),
|
HeadHunterService.Status.Success => Ok("Авторизация завершена успешно. Вернитесь в Telegram для продолжения."),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user