This commit is contained in:
Luiz H. R. Silva 2024-07-10 11:45:10 -03:00
parent 07c29cde18
commit d5bfb9a090
4 changed files with 6 additions and 1 deletions

View file

@ -9,6 +9,7 @@ export const zp_deletar_registros = z.object({
});
export const deletar_registros = ({ conta, produto, emDesenvolvimento }) => async ({ codigos, tabela, }) => {
const url = new URL(`${urlPilao(emDesenvolvimento).api}/${Object.keys({ deletar_registros })[0]}/${produto}/${conta}`);
debugger;
const tamanhoBlocos = 1000;
while (codigos.length > 0) {
const bloco = codigos.splice(0, tamanhoBlocos);