aumentando timeout para endpoints de estatistica
All checks were successful
Frontend Build and Deploy / build (push) Successful in 1m46s

This commit is contained in:
2025-06-18 19:17:14 -03:00
parent 2e94f46b5b
commit 885b8a6599

View File

@@ -95,14 +95,14 @@ export class OpenCandApi extends BaseApiClient {
* Get the enrichment statistics for candidates * Get the enrichment statistics for candidates
*/ */
async getStatisticsEnrichment(): Promise<EnrichmentResponse[]> { async getStatisticsEnrichment(): Promise<EnrichmentResponse[]> {
return this.get<EnrichmentResponse[]>(`/v1/estatistica/enriquecimento`); return this.get<EnrichmentResponse[]>(`/v1/estatistica/enriquecimento`, { timeout: 90000 });
} }
/** /**
* Get the sum of values for a specific type and grouping * Get the sum of values for a specific type and grouping
*/ */
async getStatisticsValueSum(request: ValueSumRequest): Promise<ValueSumResponse> { async getStatisticsValueSum(request: ValueSumRequest): Promise<ValueSumResponse> {
return this.post<ValueSumResponse>(`/v1/estatistica/values-sum`, request); return this.post<ValueSumResponse>(`/v1/estatistica/values-sum`, request, { timeout: 90000 });
} }
} }