atualizacoes modulo Score e Commander
This commit is contained in:
@@ -127,6 +127,16 @@ class FechamentoUsuariosService {
|
||||
this.handleAxiosError(error, "Erro ao atualizar status do usuário.");
|
||||
}
|
||||
}
|
||||
|
||||
async excluirUsuario(id: string): Promise<void> {
|
||||
try {
|
||||
const headers = await buildCommanderHeaders();
|
||||
const baseUrl = resolveCommanderBaseUrl();
|
||||
await axios.delete(`${baseUrl}/usuarios/${id}`, { headers });
|
||||
} catch (error) {
|
||||
this.handleAxiosError(error, "Erro ao excluir usuário.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const fechamentoUsuariosService = new FechamentoUsuariosService();
|
||||
|
||||
Reference in New Issue
Block a user