Skip to content

Commit

Permalink
fix(all): Fix in AS IMAGE generation of single row.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 23, 2023
1 parent e1bfc37 commit 6874869
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/basic.gblib/services/DialogKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,10 @@ export class DialogKeywords {
const imageData = await (await fetch(url)).arrayBuffer();
const base64Image = Buffer.from(imageData).toString('base64');
const contentType = mime.lookup(url);
const ext = mime.extension(contentType);
reply['attachments'] = [];
reply['attachments'].push({
name: filename,
contentType: ext,
contentType: contentType,
contentUrl: `data:${contentType};base64,${base64Image}`
});

Expand Down

0 comments on commit 6874869

Please sign in to comment.