build
This commit is contained in:
parent
a8e9f47e7b
commit
5011034f75
20 changed files with 67 additions and 49 deletions
|
|
@ -2,7 +2,7 @@ import node_fetch from "cross-fetch"
|
|||
import type { tipoResposta } from "p-respostas"
|
||||
import { respostaComuns } from "p-respostas"
|
||||
import { z } from "zod"
|
||||
import { PREFIXO_PILAO, baseUrlPilao, type zp_produto_conta } from "./variaveis"
|
||||
import { urlPilao, type zp_produto_conta } from "./variaveis"
|
||||
//enviar registros para base de dados
|
||||
export const zp_deletar_registros = z.object({
|
||||
tabela: z.string(),
|
||||
|
|
@ -16,9 +16,9 @@ export const deletar_registros =
|
|||
tabela,
|
||||
}: z.infer<typeof zp_deletar_registros>): Promise<tipoResposta<true>> => {
|
||||
const url = new URL(
|
||||
`${baseUrlPilao(
|
||||
emDesenvolvimento,
|
||||
)}${PREFIXO_PILAO}/${Object.keys({ deletar_registros })[0]}/${produto}/${conta}`,
|
||||
`${
|
||||
urlPilao(emDesenvolvimento).api
|
||||
}/${Object.keys({ deletar_registros })[0]}/${produto}/${conta}`,
|
||||
)
|
||||
const tamanhoBlocos = 1000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue