add import node_fetch from "node-fetch";
This commit is contained in:
parent
d614ba0d27
commit
5e04f26bbb
14 changed files with 87 additions and 17 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import node_fetch from "node-fetch"
|
||||
import type { tipoResposta } from "p-respostas"
|
||||
import { respostaComuns } from "p-respostas"
|
||||
import { z } from "zod"
|
||||
|
|
@ -8,7 +9,6 @@ import {
|
|||
type zp_produto_conta,
|
||||
} from "./_variaveis"
|
||||
import type { zp_serie_registrar } from "./serie_registrar"
|
||||
|
||||
//consultar compilação
|
||||
|
||||
export const zp_serie_consultar = z.object({
|
||||
|
|
@ -39,7 +39,7 @@ export const serie_consultar = ({
|
|||
}/${produto}/${conta}`}`,
|
||||
)
|
||||
|
||||
const resp = await fetch(url.toString(), {
|
||||
const resp = await node_fetch(url.toString(), {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
identificador,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue