mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 21:47:10 -04:00
Move every Attachments.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory models/)
This commit is contained in:
parent
14ac099e87
commit
fb3b47e2bb
2 changed files with 1 additions and 3 deletions
|
@ -588,7 +588,6 @@ Cards.helpers({
|
|||
|
||||
// Copy attachments
|
||||
oldCard.attachments()
|
||||
.map(att => att.get())
|
||||
.forEach(att => {
|
||||
copyFile(att, _id, fileStoreStrategyFactory);
|
||||
});
|
||||
|
|
|
@ -77,8 +77,7 @@ export class Exporter {
|
|||
const byBoardAndAttachment = this._attachmentId
|
||||
? { boardId: this._boardId, _id: this._attachmentId }
|
||||
: byBoard;
|
||||
result.attachments = Attachments.find(byBoardAndAttachment)
|
||||
.fetch()
|
||||
result.attachments = ReactiveCache.getAttachments(byBoardAndAttachment)
|
||||
.map((attachment) => {
|
||||
let filebase64 = null;
|
||||
filebase64 = getBase64DataSync(attachment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue