build
This commit is contained in:
parent
07c29cde18
commit
d5bfb9a090
4 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ exports.zp_deletar_registros = zod_1.z.object({
|
|||
});
|
||||
const deletar_registros = ({ conta, produto, emDesenvolvimento }) => async ({ codigos, tabela, }) => {
|
||||
const url = new URL(`${(0, variaveis_1.urlPilao)(emDesenvolvimento).api}/${Object.keys({ deletar_registros: exports.deletar_registros })[0]}/${produto}/${conta}`);
|
||||
debugger;
|
||||
const tamanhoBlocos = 1000;
|
||||
while (codigos.length > 0) {
|
||||
const bloco = codigos.splice(0, tamanhoBlocos);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-drives",
|
||||
"version": "0.130.0",
|
||||
"version": "0.131.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ export const deletar_registros =
|
|||
urlPilao(emDesenvolvimento).api
|
||||
}/${Object.keys({ deletar_registros })[0]}/${produto}/${conta}`,
|
||||
)
|
||||
|
||||
debugger
|
||||
|
||||
const tamanhoBlocos = 1000
|
||||
|
||||
while (codigos.length > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue