Ref: original & and use fileObj.meta

fileObj.meta is part of the ostrio:files API and be passed to the
constructor. This is less hacky than trying tu update a persistet object
after the fact.
This commit is contained in:
David Arnold 2020-09-14 01:07:17 -05:00 committed by Denis Perov
parent 16506e7a6a
commit e702f17c7b
10 changed files with 124 additions and 159 deletions

View file

@ -78,11 +78,11 @@ export class Exporter {
return {
_id: attachment._id,
cardId: attachment.cardId,
cardId: attachment.meta.cardId,
//url: FlowRouter.url(attachment.url()),
file: filebase64,
name: attachment.original.name,
type: attachment.original.type,
name: attachment.name,
type: attachment.type,
};
});
//When has a especific valid attachment return the single element
@ -209,7 +209,7 @@ export class Exporter {
delimiter: userDelimiter,
header: true,
newline: "\r\n",
skipEmptyLines: false,
skipEmptyLines: false,
escapeFormulae: true,
};