novas atualizacoes

This commit is contained in:
Vitex Tecnologia
2026-05-04 10:51:21 -03:00
parent dee9ecfbca
commit 7859230468
4 changed files with 300 additions and 81 deletions
+2 -2
View File
@@ -159,14 +159,14 @@ class FechamentoCompetenciasService {
async reabrirCompetencia(
competenciaId: string,
reabertoPorId: string,
motivo?: string,
motivo: string,
): Promise<ReabrirCompetenciaResponse["data"]> {
try {
const headers = await buildCommanderHeaders();
const baseUrl = resolveCommanderBaseUrl();
const response = await axios.post<ReabrirCompetenciaResponse>(
`${baseUrl}/competencias/${competenciaId}/reabrir`,
{ reaberto_por_id: reabertoPorId, motivo },
{ reaberto_por_id: reabertoPorId, motivo: motivo.trim() },
{ headers },
);
return response.data.data;