@@ -5,7 +5,7 @@ namespace Api.Services.Contracts;
|
||||
|
||||
public interface ICvMatcherService
|
||||
{
|
||||
Task<CvUploadResponse> UploadCvAsync(IFormFile file, bool gdprConsent, CancellationToken ct);
|
||||
Task<CvUploadResponse> UploadCvAsync(IFormFile file, CancellationToken ct);
|
||||
Task<JobMatchResponse> MatchJobAsync(MatchJobRequest request, CancellationToken ct);
|
||||
Task<FindJobsResponse> FindJobsAsync(FindJobsRequest request, CancellationToken ct);
|
||||
}
|
||||
|
||||
@@ -32,9 +32,8 @@ public sealed class CvMatcherService : ICvMatcherService
|
||||
_settings = options.Value;
|
||||
}
|
||||
|
||||
public async Task<CvUploadResponse> UploadCvAsync(IFormFile file, bool gdprConsent, CancellationToken ct)
|
||||
public async Task<CvUploadResponse> UploadCvAsync(IFormFile file, CancellationToken ct)
|
||||
{
|
||||
if (!gdprConsent) throw new InvalidOperationException("GDPR consent is required.");
|
||||
var response = await _rag.IndexCvPdfAsync(file, ct);
|
||||
return new CvUploadResponse
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user