Quellcode durchsuchen

fixup! Ref: original & and use fileObj.meta

David Arnold vor 4 Jahren
Ursprung
Commit
b05fa636ea
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      server/publications/boards.js

+ 1 - 1
server/publications/boards.js

@@ -235,7 +235,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
       const cardCommentReactions = this.join(CardCommentReactions);
       const cardCommentReactions = this.join(CardCommentReactions);
       cardCommentReactions.selector = _ids => ({ cardId: _ids });
       cardCommentReactions.selector = _ids => ({ cardId: _ids });
       const attachments = this.join(Attachments.collection);
       const attachments = this.join(Attachments.collection);
-      attachments.selector = _ids => ({ cardId: _ids });
+      attachments.selector = _ids => ({ 'meta.cardId': _ids });
       const checklists = this.join(Checklists);
       const checklists = this.join(Checklists);
       checklists.selector = _ids => ({ cardId: _ids });
       checklists.selector = _ids => ({ cardId: _ids });
       const checklistItems = this.join(ChecklistItems);
       const checklistItems = this.join(ChecklistItems);