From ef2793448a0ea79f97af01c1eb2eb1c9df86591e Mon Sep 17 00:00:00 2001 From: claude Date: Mon, 8 Jun 2026 22:10:22 +0300 Subject: [PATCH] Fix: declare language before jobLabel in CvMatcherController Co-Authored-By: Claude Sonnet 4.6 --- Apis/api/Controllers/CvMatcherController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Apis/api/Controllers/CvMatcherController.cs b/Apis/api/Controllers/CvMatcherController.cs index 57aaeef..980aad4 100644 --- a/Apis/api/Controllers/CvMatcherController.cs +++ b/Apis/api/Controllers/CvMatcherController.cs @@ -170,12 +170,11 @@ public sealed class CvMatcherController : ControllerBase !string.IsNullOrWhiteSpace(request.JobDescription)); var res = await _cvApi.MatchJob(request, ct); var attachmentPath = TryGetCachedCvPath(request.CvDocumentId); + var language = NormalizeLanguage(request.Language); var jobLabel = !string.IsNullOrWhiteSpace(request.JobUrl) ? request.JobUrl : _emailSender.GetManualJobLabel(language); - var language = NormalizeLanguage(request.Language); - string? jobSearchLink = null; if (!string.IsNullOrWhiteSpace(request.Email) && !string.IsNullOrWhiteSpace(request.CvDocumentId)) {