mirror of
https://github.com/wekan/wekan.git
synced 2026-02-27 10:24:07 +01:00
fixup! Ref: original & and use fileObj.meta
This commit is contained in:
parent
8acc6d0532
commit
b24970bc3d
2 changed files with 3 additions and 3 deletions
|
|
@ -524,12 +524,12 @@ Cards.helpers({
|
||||||
attachments() {
|
attachments() {
|
||||||
if (this.isLinkedCard()) {
|
if (this.isLinkedCard()) {
|
||||||
return Attachments.find(
|
return Attachments.find(
|
||||||
{ cardId: this.linkedId },
|
{ 'meta.cardId': this.linkedId },
|
||||||
{ sort: { uploadedAt: -1 } },
|
{ sort: { uploadedAt: -1 } },
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Attachments.find(
|
return Attachments.find(
|
||||||
{ cardId: this._id },
|
{ 'meta.cardId': this._id },
|
||||||
{ sort: { uploadedAt: -1 } },
|
{ sort: { uploadedAt: -1 } },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ export class Exporter {
|
||||||
readStream.pipe(tmpWriteable);
|
readStream.pipe(tmpWriteable);
|
||||||
};
|
};
|
||||||
const getBase64DataSync = Meteor.wrapAsync(getBase64Data);
|
const getBase64DataSync = Meteor.wrapAsync(getBase64Data);
|
||||||
result.attachments = Attachments.find(byBoard)
|
result.attachments = Attachments.find({ 'meta.boardId': this._boardId })
|
||||||
.fetch()
|
.fetch()
|
||||||
.map(attachment => {
|
.map(attachment => {
|
||||||
let filebase64 = null;
|
let filebase64 = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue