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
@@ -277,7 +277,7 @@ class FechamentoFechamentosService {
async reabrirFechamento(
fechamentoId: string,
input: { reabertoPorId: string; motivo?: string },
input: { reabertoPorId: string; motivo: string },
): Promise<FechamentoReabertoResponse> {
try {
const headers = await buildCommanderHeaders();
@@ -286,7 +286,7 @@ class FechamentoFechamentosService {
`${baseUrl}/fechamentos/${fechamentoId}/reabrir`,
{
reaberto_por_id: input.reabertoPorId,
...(input.motivo?.trim() ? { motivo: input.motivo.trim() } : {}),
motivo: input.motivo.trim(),
},
{ headers },
);