novas atualizacoes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user