fix(all): Fix in AS IMAGE generation of single row.
This commit is contained in:
parent
e1bfc3758c
commit
6874869ef8
1 changed files with 1 additions and 2 deletions
|
@ -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}`
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue