This commit is contained in:
Luiz H. R. Silva 2024-06-04 23:02:12 -03:00
parent 4f8f53908e
commit 45701265e4
8 changed files with 8 additions and 10 deletions

View file

@ -25,7 +25,7 @@ const validarToken = ({ ambiente, post, buscar, }) => __awaiter(void 0, void 0,
}
});
const codigoContaSite = ({ ambiente, post, buscar, }) => __awaiter(void 0, void 0, void 0, function* () {
const url = `${urlAutenticacao(ambiente)}/autenticacao/api/codigo_prefeitura_site`;
const url = `${urlAutenticacao(ambiente)}/api/codigo_prefeitura_site`;
try {
const resp = yield buscar(url, post).catch((e) => respostaComuns.erro(`erro ao buscar código do site: ${e}`));
return resp;