Skip to content

Commit

Permalink
Merge pull request #3 from tago-io/fix/PDFResult
Browse files Browse the repository at this point in the history
fix: pdf service return type
  • Loading branch information
vitorfdl authored Jun 27, 2022
2 parents 5cfe17c + 9338307 commit 401d13c
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 325 deletions.
4 changes: 2 additions & 2 deletions analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ async function myAnalysis(context) {
const pdf_base64 = await pdfService.generate({
base64,
options,
})
});

// Start the email service
const emailService = new Services({ token: context.token }).email;
Expand All @@ -128,7 +128,7 @@ async function myAnalysis(context) {
subject: "Exported File from TagoIO",
message: "This is an example of a body message",
attachment: {
archive: pdf_base64,
archive: pdf_base64.result,
type: "base64",
filename: "exportedfile.pdf",
},
Expand Down
Loading

0 comments on commit 401d13c

Please sign in to comment.