herramientaenvioestupendo 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herramientaenvioestupendo",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "private": false,
5
5
  "description": "Proyecto para envio documentos masivos",
6
6
  "keywords": [],
package/src/index.js CHANGED
@@ -3,7 +3,7 @@ import { program } from "commander"
3
3
  import { sendTxt, sendXml, sendAttached } from "./services.js"
4
4
 
5
5
 
6
- program.name("estupendo").version("1.0.25")
6
+ program.name("estupendo").version("1.0.26")
7
7
 
8
8
  program.command("send_xml")
9
9
  .requiredOption("-d, --directory <char>", "Directorio donde se encuentran los documentos XML")
package/src/services.js CHANGED
@@ -83,7 +83,7 @@ const sendTxt = async (options) => {
83
83
  const dataconsult =await request(urlApiConsulta, {nit: "891400754", numeral: data.documento_id})
84
84
  console.log(dataconsult)
85
85
 
86
- if (data.result) {
86
+ if (dataconsult.result === true) {
87
87
  const pdfUrl = dataconsult.pdf;
88
88
  const pdfPath = path.join(pdfDir, `${data.documento_id}.pdf`);
89
89
  try {