mirror of
https://github.com/wekan/wekan.git
synced 2026-01-07 18:18:50 +01:00
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:
parent
16506e7a6a
commit
e702f17c7b
10 changed files with 124 additions and 159 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue